ref: bcb17676a445c550c1851c42452a357b433abe05
parent: aed91e3cc7bc960f570a987c02097bd4202655df
author: Russell Rice <[email protected]>
date: Mon Nov 27 16:45:50 EST 2006
* removal of FEATURE_* defines from codeblocks project * silence some warnings Subversion-branch: /trunk/chocolate-doom Subversion-revision: 760
--- a/codeblocks/chocolate-doom.cbp
+++ b/codeblocks/chocolate-doom.cbp
@@ -40,9 +40,6 @@
<Add alias="All" targets="Debug;Release;" />
</VirtualTargets>
<Compiler>
- <Add option="-DFEATURE_MULTIPLAYER" />
- <Add option="-DFEATURE_DEHACKED" />
- <Add option="-DFEATURE_WAD_MERGE" />
<Add directory="..\textscreen" />
<Add directory="..\msvc" />
<Add directory="..\src" />
@@ -52,7 +49,7 @@
</Linker>
<Unit filename="chocolate-doom-res.rc">
<Option compilerVar="WINDRES" />
- <Option objectName="codeblocks\chocolate-doom-res.res" />
+ <Option objectName="chocolate-doom-res.res" />
<Option target="Debug" />
<Option target="Release" />
</Unit>
--- a/setup/configfile.c
+++ b/setup/configfile.c
@@ -227,16 +227,16 @@
{"usegamma", &usegamma, DEFAULT_INT, 0, 0},
- {"chatmacro0", &chat_macros[0], DEFAULT_STRING, 0 },
- {"chatmacro1", &chat_macros[1], DEFAULT_STRING, 0 },
- {"chatmacro2", &chat_macros[2], DEFAULT_STRING, 0 },
- {"chatmacro3", &chat_macros[3], DEFAULT_STRING, 0 },
- {"chatmacro4", &chat_macros[4], DEFAULT_STRING, 0 },
- {"chatmacro5", &chat_macros[5], DEFAULT_STRING, 0 },
- {"chatmacro6", &chat_macros[6], DEFAULT_STRING, 0 },
- {"chatmacro7", &chat_macros[7], DEFAULT_STRING, 0 },
- {"chatmacro8", &chat_macros[8], DEFAULT_STRING, 0 },
- {"chatmacro9", &chat_macros[9], DEFAULT_STRING, 0 },
+ {"chatmacro0", &chat_macros[0], DEFAULT_STRING, 0, 0 },
+ {"chatmacro1", &chat_macros[1], DEFAULT_STRING, 0, 0 },
+ {"chatmacro2", &chat_macros[2], DEFAULT_STRING, 0, 0 },
+ {"chatmacro3", &chat_macros[3], DEFAULT_STRING, 0, 0 },
+ {"chatmacro4", &chat_macros[4], DEFAULT_STRING, 0, 0 },
+ {"chatmacro5", &chat_macros[5], DEFAULT_STRING, 0, 0 },
+ {"chatmacro6", &chat_macros[6], DEFAULT_STRING, 0, 0 },
+ {"chatmacro7", &chat_macros[7], DEFAULT_STRING, 0, 0 },
+ {"chatmacro8", &chat_macros[8], DEFAULT_STRING, 0, 0 },
+ {"chatmacro9", &chat_macros[9], DEFAULT_STRING, 0, 0 },
};
static default_collection_t doom_defaults =
@@ -260,7 +260,7 @@
{"vanilla_savegame_limit", &vanilla_savegame_limit, DEFAULT_INT, 0, 0},
{"vanilla_demo_limit", &vanilla_demo_limit, DEFAULT_INT, 0, 0},
#ifdef FEATURE_MULTIPLAYER
- {"player_name", &net_player_name, DEFAULT_STRING, 0},
+ {"player_name", &net_player_name, DEFAULT_STRING, 0, 0},
#endif
};
--- a/src/net_common.c
+++ b/src/net_common.c
@@ -191,7 +191,7 @@
// Is this an acknowledgement for the first packet in the list?
- if (seq == ((conn->reliable_packets->seq + 1) & 0xff))
+ if (seq == (unsigned int)((conn->reliable_packets->seq + 1) & 0xff))
{
net_reliable_packet_t *rp;
@@ -224,7 +224,7 @@
return true;
}
- if (seq != (conn->reliable_recv_seq & 0xff))
+ if (seq != (unsigned int)(conn->reliable_recv_seq & 0xff))
{
// This is not the next expected packet in the sequence!
//