X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcommand%2Fgetreplies.qc;h=b3eeb1a69bdf2627042ceacb8daf94e107f7d55f;hb=5e504bae6cfc01a24dd6dc2e673a35d80c8a1759;hp=b777990338cca615706b0f1bd7b5390f55909d37;hpb=ccc13f7e2fb7a076e6e953127f70109d79313b91;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/command/getreplies.qc b/qcsrc/server/command/getreplies.qc index b77799033..b3eeb1a69 100644 --- a/qcsrc/server/command/getreplies.qc +++ b/qcsrc/server/command/getreplies.qc @@ -1,3 +1,14 @@ +#include "../../common/command/command.qh" +#include "getreplies.qh" + +#include "../race.qh" + +#include "../../common/constants.qh" +#include "../../common/mapinfo.qh" +#include "../../common/util.qh" + +#include "../../common/monsters/all.qh" + // ========================================================= // Reply messages for common commands, re-worked by Samual // Last updated: December 30th, 2011 @@ -110,7 +121,7 @@ string getrankings() string getladder() { - float i, j, k, uidcnt = 0, thiscnt; + int i, j, k, uidcnt = 0, thiscnt; string s, temp_s, rr, myuid, thisuid; rr = (g_cts) ? CTS_RECORD : RACE_RECORD; @@ -286,7 +297,7 @@ string getladder() string getmaplist() { string maplist = "", col; - float i, argc; + int i, argc; argc = tokenize_console(autocvar_g_maplist); for(i = 0; i < argc; ++i) @@ -320,7 +331,7 @@ string getlsmaps() (g_cts && !stof(db_get(ServerProgsDB, strcat(MapInfo_Map_bspname, CTS_RECORD, "time")))) ) { - newmaps = TRUE; + newmaps = true; if(i % 2) { col = "^4*"; } else { col = "^5*"; } } @@ -341,9 +352,8 @@ string getlsmaps() string getmonsterlist() { string monsterlist = "", col; - float i; - for(i = MON_FIRST; i <= MON_LAST; ++i) + for(int i = MON_FIRST; i <= MON_LAST; ++i) { if(i % 2) { col = "^2"; } else { col = "^3"; }