blob: afe3e23f51439ba957749862bb815c997725252b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
// Author: Matthew D. Campbell ([email protected]), 2004
#include "cbase.h"
#include "buy_preset_debug.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
#ifdef _DEBUG
#define BUY_PRESET_DEBUGGING 1
#else
#define BUY_PRESET_DEBUGGING 0
#endif
#if BUY_PRESET_DEBUGGING
static ConVar cl_preset_debug( "cl_preset_debug", "0", 0, "Controls debug information about buy presets" );
//--------------------------------------------------------------------------------------------------------------
bool IsPresetDebuggingEnabled()
{
return cl_preset_debug.GetInt() >= 1.0f;
}
//--------------------------------------------------------------------------------------------------------------
bool IsPresetFullCostDebuggingEnabled()
{
return cl_preset_debug.GetInt() == 2.0f;
}
//--------------------------------------------------------------------------------------------------------------
bool IsPresetCurrentCostDebuggingEnabled()
{
return cl_preset_debug.GetInt() == 3.0f;
}
#else // ! BUY_PRESET_DEBUGGING
//--------------------------------------------------------------------------------------------------------------
bool IsPresetDebuggingEnabled()
{
return false;
}
//--------------------------------------------------------------------------------------------------------------
bool IsPresetFullCostDebuggingEnabled()
{
return false;
}
//--------------------------------------------------------------------------------------------------------------
bool IsPresetCurrentCostDebuggingEnabled()
{
return false;
}
#endif // ! BUY_PRESET_DEBUGGING
//--------------------------------------------------------------------------------------------------------------
|