X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fgamecommand.qc;h=90b06a5a3d92a5950fa42d3213263c4f337db8e3;hp=a6881b293ca52ae2754bc9f80ebfa281a386589f;hb=4fc59bbd7e2d4f25ba21952ed50ae754295a7faa;hpb=c045b87696a4fb7c1537b058cafaef23213c35bc diff --git a/qcsrc/server/gamecommand.qc b/qcsrc/server/gamecommand.qc index a6881b293c..90b06a5a3d 100644 --- a/qcsrc/server/gamecommand.qc +++ b/qcsrc/server/gamecommand.qc @@ -1,5 +1,5 @@ string GotoMap(string m); -void race_DeleteTime(float pos); +void race_deleteTime(string map, float pos); float FullTraceFraction(vector a, vector mi, vector ma, vector b) { @@ -651,6 +651,7 @@ void GameCommand(string command) print(" radarmap [--force] [--quit | --loop] [sharpness]\n"); print(" bbox\n"); print(" cvar_changes\n"); + print(" cvar_purechanges\n"); print(" find classname\n"); GameCommand_Vote("help", world); GameCommand_Ban("help"); @@ -912,6 +913,11 @@ void GameCommand(string command) print(cvar_changes); return; } + if (argv(0) == "cvar_purechanges") + { + print(cvar_purechanges); + return; + } if (argv(0) == "find") if(argc == 2) { for(client = world; (client = find(client, classname, argv(1))); ) @@ -924,6 +930,11 @@ void GameCommand(string command) print(records_reply[i]); return; } + if (argv(0) == "ladder") + { + print(ladder_reply); + return; + } if (argv(0) == "rankings") { strunzone(rankings_reply); @@ -951,6 +962,7 @@ void GameCommand(string command) if(argv(0) == "debug_shotorg") { debug_shotorg = stov(argv(1)); + debug_shotorg_y = -debug_shotorg_y; return; } @@ -1339,7 +1351,11 @@ void GameCommand(string command) } if(argv(0) == "delrec") { - race_DeleteTime(stof(argv(1))); + if(argv(2) != "") + race_deleteTime(argv(2), stof(argv(1))); + else + race_deleteTime(GetMapname(), stof(argv(1))); + return; }