Mercurial > mm7
diff Indoor.cpp @ 434:137c59c3dbc4
Temple of Moon and Dragon Lair can now be entered.
author | Nomad |
---|---|
date | Sun, 24 Feb 2013 01:42:35 +0200 |
parents | 24936a5ff8ca |
children | 4f451a616d3d |
line wrap: on
line diff
--- a/Indoor.cpp Sun Feb 24 01:08:02 2013 +0200 +++ b/Indoor.cpp Sun Feb 24 01:42:35 2013 +0200 @@ -1794,15 +1794,10 @@ const char *v1; // edi@1 signed int v2; // esi@1 - v1 = Str1; - v2 = 0; - while ( _strcmpi(v1, _4E6BDC_loc_names[v2]) ) - { - ++v2; - if ( v2 >= 11 ) - return 0; - } - return v2 + 1; + for (uint i = 0; i < 11; ++i) + if (!strcmpi(Str1, _4E6BDC_loc_names[i])) + return i + 1; + return 0; }