Commit Graph

1623 Commits (898b9c5d728d4f3c6530924c46d5b68dd3732e6c)

Author SHA1 Message Date
Christian Ohm c146fef270 - Prepare for using the lex/yacc files instead of the generated c files.
Works only with the provided Makefiles. To use it, replace the
xxx_l.c/xxx_y.c lines in the Makefile with xxx_parser.y/xxx_lexer.l (the .y
file has to be first). The game compiles with all of them, but hangs on
loading a game when using script_lexer.l/parser.y, and hangs on start when
using level_lexer.l.
- Inevitably: Compiler warning fixes.



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@206 4a71c877-e1ca-e34f-864e-861f7616d084
2005-07-23 00:00:50 +00:00
Christian Ohm 3a9f621a38 - Fix a wrong function definition/call in multiint.c.
- Give the lex/yacc generated code unique variable names.
Those two changes now make it possible to compile the game with g++ using
the "-fpermissive" compiler flag.



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@205 4a71c877-e1ca-e34f-864e-861f7616d084
2005-07-22 22:39:13 +00:00
Christian Ohm 6170f498a7 - Fix more compiler warnings.
- For that, removed lots of unused code, mainly from the lex/yacc generated
files.



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@204 4a71c877-e1ca-e34f-864e-861f7616d084
2005-07-22 21:59:53 +00:00
Christian Ohm 6fdc00e9c3 Add a missing "!" so the game actually runs again (I guess that was the
reason I couldn't sleep...).



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@203 4a71c877-e1ca-e34f-864e-861f7616d084
2005-07-21 02:00:42 +00:00
Christian Ohm 4fc0c26f6d Remove the last traces of stubs.c in both ivis directories (and thus fix
building the software renderer with automake).



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@202 4a71c877-e1ca-e34f-864e-861f7616d084
2005-07-20 23:24:44 +00:00
Christian Ohm fd0ff3ccdb - Fix a crash with missing videos (by devurandom, slightly modified).
- Check if video mode could actually be set.
- Clean up the lex/yacc generated files a bit.
- Warning fixes.



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@201 4a71c877-e1ca-e34f-864e-861f7616d084
2005-07-20 23:01:33 +00:00
Christian Ohm 6cd530686f Change STRING to unsigned to avoid crash with international characters.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@199 4a71c877-e1ca-e34f-864e-861f7616d084
2005-07-20 22:18:33 +00:00
Rodolphe Suescun fef9923a01 trunk/crossplatform is the new place for stable crossplatform sources.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@198 4a71c877-e1ca-e34f-864e-861f7616d084
2005-07-18 05:29:39 +00:00
Dion Mendel 9337603e85 Merged r24:51 from branches/noid/linux. Changes improve platform
independence.  Summary follows:

* Ensure that all source files include an end of line character in the
  last line of the file.  Some compilers will complain otherwise.
* Fix case sensitivity of all #included filenames.
* Fix system include files e.g. <stdio.h>, not "stdio.h"
* Wrapped compiler specific asm statements inside #ifdef _MSC_VER
  conditionals.
* Fixed function declarations that were inconsistent with their
  definitions.
* Replaced #ifdef WIN32 with #ifndef PSX to aid in porting.
* Added #ifdef WIN32 conditionals around win32 specific code.
* Replaced MSVC++ specific &(type_cast)var feature with portable
  replacement.
* Fixup inline function declarations.
* Replaced sscanf1() with portable sscanf("%n") replacement.
* Renamed global variable gamma -> gammaValue to avoid namespace
  conflict.
* Added replacement macros for min/max provided by win32.
* framework/frameresources.c: use platform independent stdio functions.
* framework/input.c: Added setMouseUp() and setMouseDown() functions.
* framework/screen.c: Added platform independent pixel format accessors.
* ivis02/dglide.h: Added preprocessor conditional to prevent multiple
  inclusion.
* netplay/netplay.h: Removed duplicate definition of UDWORD.
* netplay/netsupp.c: Added missing include file.
* src/multilimit.c: Corrected number of args in call to
  pie_GlobalRenderBegin().
* src/csnap.c: Moved SetMousePos() to input.c
* src/frontend.c: Use setMouseUp|Down() functions instead of win32 ones.
* src/frontend.c: Use mouseX|Y() functions instead of win32 ones.
* src/intdisplay.c: Replaced itoa() with portable sprintf().


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@56 4a71c877-e1ca-e34f-864e-861f7616d084
2005-02-28 02:52:18 +00:00
Ben Russon bccde9c643 Updated version to 1.10a
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@16 4a71c877-e1ca-e34f-864e-861f7616d084
2005-02-01 04:49:51 +00:00
Ben Russon edbd2aa0f6 Added Troman's script functions
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@15 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-30 03:35:43 +00:00
Dion Mendel 657192d9fd increased pie polygon and points limit from 256 to 512
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@12 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-25 05:48:25 +00:00
Dion Mendel 61748ed786 fixed wrong array index bug. Closes: #3100
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@11 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-25 05:42:37 +00:00
Ben Russon b45f073d02 Multiplayer Unit limit now 300, Campaign unit limit still at 100 to prevent menu overload.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@10 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-23 01:42:03 +00:00
Dion Mendel 47dc78773f debugging info is now saved to disk
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@9 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-22 17:57:15 +00:00
Ben Russon c5c2c96875 Fixed a runtime debug error
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@8 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-22 08:36:45 +00:00
Ben Russon 75cc34124b Release mode now compiles
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@7 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-22 03:10:32 +00:00
Ben Russon e291f07100 Removed some unneccesary build logs and runtime generated files.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-21 15:24:35 +00:00
Ben Russon 1cc548f906 Successfully compiled in debug mode
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-20 09:14:28 +00:00
Ben Russon 065ff07084 Added Glide2x library. Did not upload glide\doc, glide\Src\tests, or glide\Src\Lib\dos
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-19 21:01:04 +00:00
Dion Mendel 577c9c4267 renamed filenames to lowercase for developer convenience
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-18 08:01:49 +00:00
Dion Mendel 278341944e set svn:eol-style=native property on source files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-18 07:51:46 +00:00
Ben Russon dfb2beeb28 Initial Version
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1 4a71c877-e1ca-e34f-864e-861f7616d084
2005-01-18 04:45:05 +00:00