-debug to control debugging output. Use debug() instead of printf or DBPRINTF for debug
information.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@227 4a71c877-e1ca-e34f-864e-861f7616d084
after the first time trying to connect which are "solved" by quitting and restarting the
game. Patch by Henri Valta <henri.valta@kemi.fi>.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@226 4a71c877-e1ca-e34f-864e-861f7616d084
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
- 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
- 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
- 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
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