shithub: choc

Download patch

ref: cdcba6a922eb11b0829644ce590210a935297f7e
parent: 9c707d58e5004fad1540c7d05bdda54773d5ed71
author: Simon Howard <[email protected]>
date: Wed Sep 24 14:58:50 EDT 2008

Remove external reference to DisplayTicker; make this call
I_DisplayFPSDots.

Subversion-branch: /branches/raven-branch
Subversion-revision: 1271

--- a/src/heretic/sb_bar.c
+++ b/src/heretic/sb_bar.c
@@ -77,6 +77,8 @@
 int inv_ptr;
 int ArtifactFlash;
 
+static int DisplayTicker = 0;
+
 // Private Data
 
 static int HealthMarker;
@@ -1154,8 +1156,6 @@
 
 static void CheatTickerFunc(player_t * player, Cheat_t * cheat)
 {
-    extern int DisplayTicker;
-
     DisplayTicker = !DisplayTicker;
     if (DisplayTicker)
     {
@@ -1165,6 +1165,8 @@
     {
         P_SetMessage(player, TXT_CHEATTICKEROFF, false);
     }
+
+    I_DisplayFPSDots(DisplayTicker);
 }
 
 static void CheatArtifact1Func(player_t * player, Cheat_t * cheat)