Cleanup: Some CGameRules methods are now of type 'bool'

Remove rules.qc
This commit is contained in:
Marco Cawthorne 2022-07-16 15:09:18 -07:00
parent cd29e3a186
commit b1943df57a
Signed by: eukara
GPG key ID: CE2032F0A2882A22
3 changed files with 14 additions and 6 deletions

View file

@ -14,9 +14,6 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
var int autocvar_sv_playerkeepalive = TRUE;
bool bool
HLGameRules::IsMultiplayer(void) HLGameRules::IsMultiplayer(void)
{ {

View file

@ -20,6 +20,18 @@ HLMultiplayerRules::IsMultiplayer(void)
return true; return true;
} }
bool
HLMultiplayerRules::IsTeamplay(void)
{
return false;
}
void
HLMultiplayerRules::InitPostEnts(void)
{
}
void void
HLMultiplayerRules::FrameStart(void) HLMultiplayerRules::FrameStart(void)
{ {
@ -153,7 +165,7 @@ HLMultiplayerRules::PlayerSpawn(NSClientPlayer pp)
Client_FixAngle(pl, pl.angles); Client_FixAngle(pl, pl.angles);
} }
float bool
HLMultiplayerRules::ConsoleCommand(NSClientPlayer pp, string cmd) HLMultiplayerRules::ConsoleCommand(NSClientPlayer pp, string cmd)
{ {
tokenize(cmd); tokenize(cmd);
@ -169,7 +181,7 @@ HLMultiplayerRules::ConsoleCommand(NSClientPlayer pp, string cmd)
return (1); return (1);
} }
int bool
HLMultiplayerRules::MonstersSpawn(void) HLMultiplayerRules::MonstersSpawn(void)
{ {
return (FALSE); return (FALSE);

1
src/server/progs.src Executable file → Normal file
View file

@ -41,7 +41,6 @@ gamerules_multiplayer.qc
../../../valve/src/server/client.qc ../../../valve/src/server/client.qc
../../../valve/src/server/server.qc ../../../valve/src/server/server.qc
../../../base/src/server/damage.qc ../../../base/src/server/damage.qc
../../../valve/src/server/rules.qc
../../../valve/src/server/flashlight.qc ../../../valve/src/server/flashlight.qc
../../../base/src/server/modelevent.qc ../../../base/src/server/modelevent.qc