Browse files

Disable more stats code.

git-svn-id: svn+ssh://jay/var/svn/wolf/trunk@142 32837ae5-38f0-4cfd-8401-3ff76d8497c4
  • Loading branch information...
1 parent 51c68a8 commit 282d8012b2b5d933497f4c0d0f396bbd939ee812 paul committed Aug 19, 2007
Showing with 25 additions and 4 deletions.
  1. +4 −0 wl_act1.c
  2. +10 −0 wl_agent.c
  3. +3 −2 wl_def.h
  4. +6 −2 wl_game.c
  5. +2 −0 wl_state.c
View
4 wl_act1.c
@@ -135,8 +135,10 @@ void SpawnStatic(myint tilex, myint tiley, myint type)
case bo_bible:
case bo_crown:
case bo_fullheal:
+#ifdef ENABLE_STATS
if (!loadedgame)
gamestate.treasuretotal++;
+#endif
case bo_firstaid:
case bo_key1:
@@ -742,7 +744,9 @@ void PushWall(myint checkx, myint checky, myint dir)
break;
}
+#ifdef ENABLE_STATS
gamestate.secretcount++;
+#endif
pwallx = checkx;
pwally = checky;
pwalldir = dir;
View
10 wl_agent.c
@@ -615,22 +615,30 @@ void GetBonus (statobj_t *check)
case bo_cross:
SD_PlaySound (BONUS1SND);
GivePoints (100);
+#ifdef ENABLE_STATS
gamestate.treasurecount++;
+#endif
break;
case bo_chalice:
SD_PlaySound (BONUS2SND);
GivePoints (500);
+#ifdef ENABLE_STATS
gamestate.treasurecount++;
+#endif
break;
case bo_bible:
SD_PlaySound (BONUS3SND);
GivePoints (1000);
+#ifdef ENABLE_STATS
gamestate.treasurecount++;
+#endif
break;
case bo_crown:
SD_PlaySound (BONUS4SND);
GivePoints (5000);
+#ifdef ENABLE_STATS
gamestate.treasurecount++;
+#endif
break;
case bo_clip:
@@ -678,7 +686,9 @@ void GetBonus (statobj_t *check)
HealSelf (99);
GiveAmmo (25);
GiveExtraMan ();
+#ifdef ENABLE_STATS
gamestate.treasurecount++;
+#endif
break;
case bo_food:
View
5 wl_def.h
@@ -672,9 +672,10 @@ typedef struct
myint faceframe;
myint attackframe,attackcount,weaponframe;
- myint episode,secretcount,treasurecount,killcount,
- secrettotal,treasuretotal;
+ myint episode;
#ifdef ENABLE_STATS
+ myint secretcount,treasurecount,killcount;
+ myint secrettotal,treasuretotal;
myint killtotal;
#endif
long TimeCount;
View
8 wl_game.c
@@ -147,8 +147,10 @@ void ScanInfoPlane()
// P wall
//
case 98: /* PUSHABLETILE */
+#ifdef ENABLE_STATS
if (!loadedgame)
gamestate.secrettotal++;
+#endif
setmapspecial(x, y, ms_pushable);
break;
@@ -508,14 +510,16 @@ void SetupGameLevel()
if (!loadedgame) {
gamestate.TimeCount =
- gamestate.secrettotal =
#ifdef ENABLE_STATS
+ gamestate.secrettotal =
gamestate.killtotal =
-#endif
gamestate.treasuretotal =
gamestate.secretcount =
gamestate.killcount =
gamestate.treasurecount = 0;
+#else
+ 0;
+#endif
}
if (demoplayback || demorecord)
View
2 wl_state.c
@@ -860,7 +860,9 @@ void KillActor (objtype *ob)
break;
}
+#ifdef ENABLE_STATS
gamestate.killcount++;
+#endif
ob->flags &= ~FL_SHOOTABLE;
clear_actor(ob->tilex, ob->tiley);
ob->flags |= FL_NONMARK;

0 comments on commit 282d801

Please sign in to comment.