netpanzer-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces BaseGameMana...


From: Hankin Chick
Subject: [netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces BaseGameMana...
Date: Fri, 21 Nov 2003 09:38:50 -0500

CVSROOT:        /cvsroot/netpanzer
Module name:    netpanzer
Branch:         
Changes by:     Hankin Chick <address@hidden>   03/11/21 09:38:50

Modified files:
        src/NetPanzer/Interfaces: BaseGameManager.cpp 

Log message:
        Fix for crashing when running a bot on a new installation.

Patches:
Index: netpanzer/src/NetPanzer/Interfaces/BaseGameManager.cpp
diff -u netpanzer/src/NetPanzer/Interfaces/BaseGameManager.cpp:1.3 
netpanzer/src/NetPanzer/Interfaces/BaseGameManager.cpp:1.4
--- netpanzer/src/NetPanzer/Interfaces/BaseGameManager.cpp:1.3  Thu Oct 23 
13:42:55 2003
+++ netpanzer/src/NetPanzer/Interfaces/BaseGameManager.cpp      Fri Nov 21 
09:38:49 2003
@@ -141,6 +141,9 @@
     if(UNIT_FLAGS_SURFACE.getFrameCount() == 0) {
         throw Exception("Couldn't find any flag in pics/flags/.");
     }
+    if(gameconfig->playerflag<0) {
+        gameconfig->playerflag=rand()%UNIT_FLAGS_SURFACE.getFrameCount();
+    }
 }
 //-----------------------------------------------------------------
 void BaseGameManager::initializeNetworkSubSystem()




reply via email to

[Prev in Thread] Current Thread [Next in Thread]