Bug#762447: warzone2100: incorrect multiplayer stats (missing kills/score at least)

Cyril Brulebois kibi at debian.org
Mon Sep 22 12:17:07 UTC 2014


Package: warzone2100
Version: 3.1~rc2-1
Severity: normal
Control: found -1 3.1~beta11-2

Hi,

it looks like kills/score aren't stored at all after multiplayer
games:
| kibi at arya:~$ cat .warzone2100-3.1/multiplay/players/KiBi.sta 
| WZ.STA.v3
| 4 0 0 0 2

after a few rounds. Or after a few hours:
| kibi at arya:~$ cat .warzone2100-3.1-backup/multiplay/players/KiBi.sta 
| WZ.STA.v3
| 206 0 0 0 113

The latter was using 3.1~beta11-2; I've moved it aside when I upgraded
to 3.1~rc2-1, to make sure.

saveMultiStats() in src/multistat.cpp has:
|         snprintf(buffer, MAX_STA_SIZE, "WZ.STA.v3\n%u %u %u %u %u",
|                  st->wins, st->losses, st->totalKills, st->totalScore, st->played);

so I suspect this st thing is somewhat busted. Besides the 0 values
for totalKills and totalScore, how can I get more wins than played
games?

Mraw,
KiBi.



More information about the Pkg-games-devel mailing list