summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2009-05-09 16:11:46 +0000
committerSimon Howard2009-05-09 16:11:46 +0000
commit3c92c5807e2eacdf84932d385d5041dfb311a26c (patch)
tree84aab69b3b07ab07153d7f954a5a8b457f6f73df /src
parent97f0be5d839ae5ec5b4c4d28dcf850f7afe08555 (diff)
downloadchocolate-doom-3c92c5807e2eacdf84932d385d5041dfb311a26c.tar.gz
chocolate-doom-3c92c5807e2eacdf84932d385d5041dfb311a26c.tar.bz2
chocolate-doom-3c92c5807e2eacdf84932d385d5041dfb311a26c.zip
Fix compiler warnings.
Subversion-branch: /branches/raven-branch Subversion-revision: 1515
Diffstat (limited to 'src')
-rw-r--r--src/doom/d_net.c3
-rw-r--r--src/heretic/d_net.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/doom/d_net.c b/src/doom/d_net.c
index e43ac4b2..e30ead83 100644
--- a/src/doom/d_net.c
+++ b/src/doom/d_net.c
@@ -430,12 +430,13 @@ static boolean PlayersInGame(void)
static int GetLowTic(void)
{
- int i;
int lowtic;
#ifdef FEATURE_MULTIPLAYER
if (net_client_connected)
{
+ int i;
+
lowtic = INT_MAX;
for (i=0; i<MAXPLAYERS; ++i)
diff --git a/src/heretic/d_net.c b/src/heretic/d_net.c
index f6121e91..9258b7d7 100644
--- a/src/heretic/d_net.c
+++ b/src/heretic/d_net.c
@@ -25,6 +25,8 @@
// d_net.c
// This version has the fixed ticdup code
+#include <stdlib.h>
+
#include "doomdef.h"
#include "doomkeys.h"