This should fix problems.
**NOTES  must delete all .sta files in multiplay\players.
They are corrupt !

For old game, when click flag next to player name, did it ever show 
list player names??


Index: src/configuration.c
===================================================================
--- src/configuration.c (revision 1616)
+++ src/configuration.c (working copy)
@@ -364,13 +364,15 @@
        }
 
        // player name
-       if (getWarzoneKeyString("playerName", sBuf))
+       getWarzoneKeyString("playerName", sBuf);
+       if (sBuf[0]!=0) //possible to have "" name
        {
                strcpy((char*)sPlayer, sBuf);
        }
        else
        {
                setWarzoneKeyString("playerName","Player");
+               strcpy((char*)sPlayer,"Player");
        }
 
        // map name
Index: src/multistat.c
===================================================================
--- src/multistat.c     (revision 1616)
+++ src/multistat.c     (working copy)
@@ -596,6 +596,8 @@
        PLAYERSTATS                     blankstats = {0};
        SAVEDPLAYERSTATS                st;
 
+       if(sPlayerName[0]==0)
+               strcpy(sPlayerName,"DefaultName");      //Force name in case 
user 
enter ""
        strcpy(fileName,MultiPlayersPath);
        strcat(fileName,sPlayerName);
        strcat(fileName,".sta");

--
Looking for insurance? Compare and save 50% today. Click here.
http://tagline.hushmail.com/fc/Ioyw6h4d8YS5XjmFuyOLXqqYi9T591cJVKyecf7O6Yj2bFAuMsuEai/




_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to