diff options
author | Strangerke | 2016-09-03 13:53:52 +0200 |
---|---|---|
committer | Strangerke | 2016-09-03 13:53:52 +0200 |
commit | 9aa582e341e188895f8a48cc765aaf96d58448a0 (patch) | |
tree | 9ec2476d1ab1628635e8928d70ab89b0b99ad84f /engines/dm/menus.cpp | |
parent | 2fec2241e446b19baf2f3a4bb09bc4ba10ec6a13 (diff) | |
download | scummvm-rg350-9aa582e341e188895f8a48cc765aaf96d58448a0.tar.gz scummvm-rg350-9aa582e341e188895f8a48cc765aaf96d58448a0.tar.bz2 scummvm-rg350-9aa582e341e188895f8a48cc765aaf96d58448a0.zip |
DM: Refactor string manipulation in drawPanelObject
Diffstat (limited to 'engines/dm/menus.cpp')
-rw-r--r-- | engines/dm/menus.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/dm/menus.cpp b/engines/dm/menus.cpp index 32d6c62565..687e619661 100644 --- a/engines/dm/menus.cpp +++ b/engines/dm/menus.cpp @@ -837,13 +837,14 @@ void MenuMan::addChampionSymbol(int16 symbolIndex) { {1, 2, 3, 4, 5, 6}, /* Power 1 */ {2, 3, 4, 5, 6, 7}, /* Power 2 */ {4, 5, 6, 7, 7, 9}, /* Power 3 */ - {2, 2, 3, 4, 6, 7}}; /* Power 4 */ + {2, 2, 3, 4, 6, 7} /* Power 4 */ + }; static byte G0486_auc_Graphic560_SymbolManaCostMultiplier[6] = {8, 12, 16, 20, 24, 28}; uint16 L1222_ui_SymbolStep; uint16 L1223_ui_ManaCost; uint16 L1224_ui_SymbolIndex; - Champion* L1225_ps_Champion; + Champion *L1225_ps_Champion; L1225_ps_Champion = &_vm->_championMan->_champions[_vm->_championMan->_magicCasterChampionIndex]; L1222_ui_SymbolStep = L1225_ps_Champion->_symbolStep; @@ -867,7 +868,7 @@ void MenuMan::addChampionSymbol(int16 symbolIndex) { void MenuMan::deleteChampionSymbol() { int16 L1226_ui_SymbolStep; - Champion* L1228_ps_Champion; + Champion *L1228_ps_Champion; L1228_ps_Champion = &_vm->_championMan->_champions[_vm->_championMan->_magicCasterChampionIndex]; if (!strlen(L1228_ps_Champion->_symbols)) { |