Mercurial > mm7
changeset 2527:8f12e6a1fcc2
Party creation arrow fix
author | a.parshin |
---|---|
date | Mon, 13 Oct 2014 14:58:54 +0300 |
parents | b1c516bf1102 |
children | e72e62ec9273 |
files | GUI/UI/UIPartyCreation.cpp |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/GUI/UI/UIPartyCreation.cpp Fri Oct 10 19:23:27 2014 +0300 +++ b/GUI/UI/UIPartyCreation.cpp Mon Oct 13 14:58:54 2014 +0300 @@ -427,16 +427,16 @@ pTexture_buttplus = pIcons_LOD->LoadTexturePtr("buttplus", TEXTURE_16BIT_PALETTE); pTexture_pressrigh = pIcons_LOD->LoadTexturePtr("presrigh", TEXTURE_16BIT_PALETTE); pTexture_presleft = pIcons_LOD->LoadTexturePtr("presleft", TEXTURE_16BIT_PALETTE); - uControlParam = 0; - do + + for (int i = 0; i < 20; ++i) { - sprintf(pTmpBuf.data(), "arrowl%d", uControlParam); - pTextures_arrowl[uControlParam] = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE); + sprintf(pTmpBuf.data(), "arrowl%d", i + 1); + pTextures_arrowl[i] = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE); - sprintf(pTmpBuf.data(), "arrowr%d", uControlParam); - pTextures_arrowr[uControlParam] = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE); + sprintf(pTmpBuf.data(), "arrowr%d", i + 1); + pTextures_arrowr[i] = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE); } - while ( ++uControlParam < 20 ); + pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, window->GetWidth(), window->GetHeight(), WINDOW_MainMenu, 0, 0); uControlParam = 0; uX = 8;