From 7194f44ecafa2fc6ff0475b8642dcfa73e018700 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 16 Oct 2024 12:57:27 +0200 Subject: [PATCH] =?UTF-8?q?those=20can=20be=20registered=20in=20l=C3=B6?= =?UTF-8?q?=C3=B6p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/d_netcmd.c | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 0d611ac87..f7515f1d7 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -979,7 +979,6 @@ void D_RegisterClientCommands(void) CV_RegisterVar(&cv_audbuffersize); // m_menu.c - //CV_RegisterVar(&cv_compactscoreboard); CV_RegisterVar(&cv_chatheight); CV_RegisterVar(&cv_chatwidth); CV_RegisterVar(&cv_chattime); @@ -1091,20 +1090,12 @@ void D_RegisterClientCommands(void) CV_RegisterVar(&cv_controlperkey); CV_RegisterVar(&cv_turnsmooth); - CV_RegisterVar(&cv_rumble[0]); - CV_RegisterVar(&cv_rumble[1]); - CV_RegisterVar(&cv_rumble[2]); - CV_RegisterVar(&cv_rumble[3]); - - CV_RegisterVar(&cv_gamepadled[0]); - CV_RegisterVar(&cv_gamepadled[1]); - CV_RegisterVar(&cv_gamepadled[2]); - CV_RegisterVar(&cv_gamepadled[3]); - - CV_RegisterVar(&cv_ledpowerup[0]); - CV_RegisterVar(&cv_ledpowerup[1]); - CV_RegisterVar(&cv_ledpowerup[2]); - CV_RegisterVar(&cv_ledpowerup[3]); + for (i = 0; i < MAXSPLITSCREENPLAYERS; i++) + { + CV_RegisterVar(&cv_rumble[i]); + CV_RegisterVar(&cv_gamepadled[i]); + CV_RegisterVar(&cv_ledpowerup[i]); + } CV_RegisterVar(&cv_usemouse); CV_RegisterVar(&cv_usemouse2); @@ -1198,26 +1189,16 @@ void D_RegisterClientCommands(void) CV_RegisterVar(&cv_speed); CV_RegisterVar(&cv_opflags); CV_RegisterVar(&cv_mapthingnum); - //CV_RegisterVar(&cv_grid); - //CV_RegisterVar(&cv_snapto); // add cheat commands COM_AddCommand("noclip", Command_CheatNoClip_f); COM_AddCommand("god", Command_CheatGod_f); COM_AddCommand("notarget", Command_CheatNoTarget_f); - /*COM_AddCommand("getallemeralds", Command_Getallemeralds_f); - COM_AddCommand("resetemeralds", Command_Resetemeralds_f); - COM_AddCommand("setrings", Command_Setrings_f); - COM_AddCommand("setlives", Command_Setlives_f); - COM_AddCommand("setcontinues", Command_Setcontinues_f);*/ COM_AddCommand("devmode", Command_Devmode_f); COM_AddCommand("savecheckpoint", Command_Savecheckpoint_f); COM_AddCommand("scale", Command_Scale_f); COM_AddCommand("gravflip", Command_Gravflip_f); COM_AddCommand("hurtme", Command_Hurtme_f); - /*COM_AddCommand("jumptoaxis", Command_JumpToAxis_f); - COM_AddCommand("charability", Command_Charability_f); - COM_AddCommand("charspeed", Command_Charspeed_f);*/ COM_AddCommand("teleport", Command_Teleport_f); COM_AddCommand("rteleport", Command_RTeleport_f); COM_AddCommand("skynum", Command_Skynum_f);