From f6f4178d3b8f92b57d766a3e5fa278808bacb4d3 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 24 Apr 2015 22:15:10 +1000 Subject: [PATCH] Couple more array fixes --- qcsrc/menu/xonotic/dialog_multiplayer_create.qc | 2 +- qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.qc | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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)); -- 2.39.2