From: Mario Date: Fri, 24 Apr 2015 12:15:10 +0000 (+1000) Subject: Couple more array fixes X-Git-Tag: xonotic-v0.8.1~70 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f6f4178d3b8f92b57d766a3e5fa278808bacb4d3;p=xonotic%2Fxonotic-data.pk3dir.git Couple more array fixes --- diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_create.qc b/qcsrc/menu/xonotic/dialog_multiplayer_create.qc index 4e76cbc6d..d49cd3765 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_create.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_create.qc @@ -33,7 +33,7 @@ void GameType_ConfigureSliders(entity e, entity l, string pLabel, float pMin, fl e.configureXonoticTextSlider(e, pCvar); // clear old values - float i; + int i; for(i = 0; i <= e.nValues; ++i); { if(e.(valueStrings[i])) { strunzone(e.(valueStrings[i])); } diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.qc b/qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.qc index 9baf36127..90cbcac0d 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.qc @@ -26,7 +26,7 @@ ENDCLASS(XonoticMapInfoDialog) #endif #ifdef IMPLEMENTATION -void XonoticMapInfoDialog_loadMapInfo(entity me, float i, entity mlb) +void XonoticMapInfoDialog_loadMapInfo(entity me, int i, entity mlb) { me.currentMapIndex = i; me.startButton.onClickEntity = mlb; @@ -67,7 +67,8 @@ void XonoticMapInfoDialog_loadMapInfo(entity me, float i, entity mlb) void XonoticMapInfoDialog_fill(entity me) { entity e; - float w, wgt, i, n; + int i; + float w, wgt, n; me.TR(me); me.TDempty(me, 0.2); me.TD(me, me.rows - 2, 3, e = makeXonoticImage(string_null, 4.0/3.0));