File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,18 @@ class CBaseTFIssue : public CBaseIssue
29
29
}
30
30
};
31
31
32
+ #ifdef BDSBASE
33
+ class CDummyIssue : public CBaseTFIssue
34
+ {
35
+ public:
36
+ CDummyIssue (CVoteController* pVoteController) : CBaseTFIssue(" Dummy" , pVoteController) { }
37
+
38
+ virtual void ExecuteCommand (void ) OVERRIDE { };
39
+ virtual const char * GetDisplayString (void ) OVERRIDE { return " Placeholder" ; };
40
+ virtual void ListIssueDetails (CBasePlayer* forWhom) OVERRIDE { };
41
+ };
42
+ #endif
43
+
32
44
// -----------------------------------------------------------------------------
33
45
// Purpose:
34
46
// -----------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -12117,11 +12117,26 @@ void CTFGameRules::CreateStandardEntities()
12117
12117
m_hGamerulesProxy->SetName( AllocPooledString("tf_gamerules" ) );
12118
12118
12119
12119
g_voteControllerGlobal = static_cast< CVoteController *>( CBaseEntity::Create( "vote_controller", vec3_origin, vec3_angle ) );
12120
+ #ifdef BDSBASE
12121
+ g_voteControllerGlobal->SetName(MAKE_STRING("zz_global_vote_controller"));
12122
+ #endif
12120
12123
g_voteControllerRed = static_cast< CVoteController *>( CBaseEntity::Create( "vote_controller", vec3_origin, vec3_angle ) );
12124
+ #ifdef BDSBASE
12125
+ g_voteControllerRed->SetName(MAKE_STRING("zz_red_vote_controller"));
12126
+ #endif
12121
12127
g_voteControllerBlu = static_cast< CVoteController *>( CBaseEntity::Create( "vote_controller", vec3_origin, vec3_angle ) );
12128
+ #ifdef BDSBASE
12129
+ g_voteControllerBlu->SetName(MAKE_STRING("zz_blue_vote_controller"));
12130
+ #endif
12122
12131
12123
12132
// Vote Issue classes are handled/cleaned-up by g_voteControllers
12133
+ #ifdef BDSBASE
12134
+ NewTeamIssue< CDummyIssue >();
12135
+ #endif
12124
12136
NewTeamIssue< CKickIssue >();
12137
+ #ifdef BDSBASE
12138
+ NewGlobalIssue< CDummyIssue >();
12139
+ #endif
12125
12140
NewGlobalIssue< CRestartGameIssue >();
12126
12141
NewGlobalIssue< CChangeLevelIssue >();
12127
12142
NewGlobalIssue< CNextLevelIssue >();
You can’t perform that action at this time.
0 commit comments