Skip to content

Commit dcc7e6e

Browse files
committed
1 parent 42d9aef commit dcc7e6e

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

src/game/server/tf/tf_voteissues.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ class CBaseTFIssue : public CBaseIssue
2929
}
3030
};
3131

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+
3244
//-----------------------------------------------------------------------------
3345
// Purpose:
3446
//-----------------------------------------------------------------------------

src/game/shared/tf/tf_gamerules.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12117,11 +12117,26 @@ void CTFGameRules::CreateStandardEntities()
1211712117
m_hGamerulesProxy->SetName( AllocPooledString("tf_gamerules" ) );
1211812118

1211912119
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
1212012123
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
1212112127
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
1212212131

1212312132
// Vote Issue classes are handled/cleaned-up by g_voteControllers
12133+
#ifdef BDSBASE
12134+
NewTeamIssue< CDummyIssue >();
12135+
#endif
1212412136
NewTeamIssue< CKickIssue >();
12137+
#ifdef BDSBASE
12138+
NewGlobalIssue< CDummyIssue >();
12139+
#endif
1212512140
NewGlobalIssue< CRestartGameIssue >();
1212612141
NewGlobalIssue< CChangeLevelIssue >();
1212712142
NewGlobalIssue< CNextLevelIssue >();

0 commit comments

Comments
 (0)