X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fplayerlist.qc;fp=qcsrc%2Fmenu%2Fxonotic%2Fplayerlist.qc;h=1edc5b8400c8cc6347f5916125ebc34c850e5e0d;hp=e90eef23d3a11d2c63a2aa33798f49522508a396;hb=323105d51f8eb6dea47c063965be5e34ad57f987;hpb=f53cfd3a6161ba8b7a62bd953d18e689f051b337 diff --git a/qcsrc/menu/xonotic/playerlist.qc b/qcsrc/menu/xonotic/playerlist.qc index e90eef23d3..1edc5b8400 100644 --- a/qcsrc/menu/xonotic/playerlist.qc +++ b/qcsrc/menu/xonotic/playerlist.qc @@ -2,11 +2,11 @@ .float realUpperMargin2; -const float PLAYERPARM_SCORE = 0; -const float PLAYERPARM_PING = 1; -const float PLAYERPARM_TEAM = 2; -const float PLAYERPARM_NAME = 3; -const float PLAYERPARM_COUNT = 4; +const int PLAYERPARM_SCORE = 0; +const int PLAYERPARM_PING = 1; +const int PLAYERPARM_TEAM = 2; +const int PLAYERPARM_NAME = 3; +const int PLAYERPARM_COUNT = 4; entity makeXonoticPlayerList() { @@ -33,7 +33,7 @@ void XonoticPlayerList_setPlayerList(entity me, string plist) s = bufstr_get(buf, i * PLAYERPARM_COUNT + PLAYERPARM_NAME); n = tokenize_console(s); - if(n == 4) + if(n == PLAYERPARM_COUNT) { bufstr_set(buf, i * PLAYERPARM_COUNT + PLAYERPARM_SCORE, argv(0)); // -666 bufstr_set(buf, i * PLAYERPARM_COUNT + PLAYERPARM_PING, argv(1)); // 100