Date: Thursday July 20, 2000 @ 20:08 Author: ahn Update of /home/netrek/cvsroot/Vanilla/ntserv In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv23614/ntserv Modified Files: genspkt.c Log Message: Fix session stats for LTD_STATS mode. **************************************** Index: Vanilla/ntserv/genspkt.c diff -u Vanilla/ntserv/genspkt.c:1.17 Vanilla/ntserv/genspkt.c:1.18 --- Vanilla/ntserv/genspkt.c:1.17 Sat Jul 1 03:35:44 2000 +++ Vanilla/ntserv/genspkt.c Thu Jul 20 20:08:27 2000 @@ -2054,7 +2054,10 @@ unsigned int total_kills, total_deaths, total_armies_bombed, total_ticks, total_planets_taken, sb_kills, sb_deaths, sb_ticks; + unsigned int my_kills, my_deaths, my_armies_bombed, my_ticks, + my_planets_taken, my_sb_kills, my_sb_deaths, my_sb_ticks; + if(repCount % i) return; @@ -2069,6 +2072,15 @@ reset). Stick it in here for lack of a better place. Needed because these are ntserv process variables, so robot can't touch them. */ + my_kills = ltd_kills(me, LTD_TOTAL); + my_deaths = ltd_deaths(me, LTD_TOTAL); + my_armies_bombed = ltd_armies_bombed(me, LTD_TOTAL); + my_ticks = ltd_ticks(me, LTD_TOTAL); + my_planets_taken = ltd_planets_taken(me, LTD_TOTAL); + my_sb_kills = ltd_kills(me, LTD_SB); + my_sb_deaths = ltd_deaths(me, LTD_SB); + my_sb_ticks = ltd_ticks(me, LTD_SB); + total_kills = ltd_kills(pl, LTD_TOTAL); total_deaths = ltd_deaths(pl, LTD_TOTAL); total_armies_bombed = ltd_armies_bombed(pl, LTD_TOTAL); @@ -2080,17 +2092,17 @@ - if (startTkills > total_kills || - startTlosses > total_deaths || - startTarms > total_armies_bombed || - startTplanets > total_planets_taken || - startTticks > total_ticks) + if (startTkills > my_kills || + startTlosses > my_deaths || + startTarms > my_armies_bombed || + startTplanets > my_planets_taken || + startTticks > my_ticks) { - startTkills = total_kills; - startTlosses = total_deaths; - startTarms = total_armies_bombed; - startTplanets = total_planets_taken; - startTticks = total_ticks; + startTkills = my_kills; + startTlosses = my_deaths; + startTarms = my_armies_bombed; + startTplanets = my_planets_taken; + startTticks = my_ticks; } /*