Skip to content

Commit ec379b7

Browse files
committed
Remove memory monitor remainings
Change hud_fov and fov commands to be available not only in debug
1 parent 36e2a00 commit ec379b7

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/xrGame/console_commands.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -169,16 +169,7 @@ class CCC_MemStats : public IConsole_Command
169169
};
170170
virtual void Execute(LPCSTR args) { full_memory_stats(); }
171171
};
172-
#ifdef DEBUG
173-
class CCC_MemCheckpoint : public IConsole_Command
174-
{
175-
public:
176-
CCC_MemCheckpoint(LPCSTR N) : IConsole_Command(N) { bEmptyArgsHandled = FALSE; };
177-
virtual void Execute(LPCSTR args) { memory_monitor::make_checkpoint(args); }
178-
virtual void Save(IWriter* F) {}
179-
};
180172

181-
#endif // #ifdef DEBUG
182173
// console commands
183174
class CCC_GameDifficulty : public CCC_Token
184175
{
@@ -1740,9 +1731,6 @@ void CCC_RegisterCommands()
17401731
g_OptConCom.Init();
17411732

17421733
CMD1(CCC_MemStats, "stat_memory");
1743-
#ifdef DEBUG
1744-
CMD1(CCC_MemCheckpoint, "stat_memory_checkpoint");
1745-
#endif //#ifdef DEBUG
17461734
// game
17471735
CMD3(CCC_Mask, "g_crouch_toggle", &psActorFlags, AF_CROUCH_TOGGLE);
17481736
CMD1(CCC_GameDifficulty, "g_game_difficulty");
@@ -1783,7 +1771,7 @@ void CCC_RegisterCommands()
17831771
CMD3(CCC_Mask, "hud_crosshair", &psHUD_Flags, HUD_CROSSHAIR);
17841772
CMD3(CCC_Mask, "hud_crosshair_dist", &psHUD_Flags, HUD_CROSSHAIR_DIST);
17851773

1786-
#ifdef DEBUG
1774+
#if !defined(MASTER_GOLD) || defined(DEBUG)
17871775
CMD4(CCC_Float, "hud_fov", &psHUD_FOV, 0.1f, 1.0f);
17881776
CMD4(CCC_Float, "fov", &g_fov, 5.0f, 180.0f);
17891777
#endif // DEBUG

0 commit comments

Comments
 (0)