comparison 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
comparison
equal deleted inserted replaced
433:0eaed3e0d75f 434:137c59c3dbc4
1792 unsigned int IndoorLocation::GetLocationIndex(const char *Str1) 1792 unsigned int IndoorLocation::GetLocationIndex(const char *Str1)
1793 { 1793 {
1794 const char *v1; // edi@1 1794 const char *v1; // edi@1
1795 signed int v2; // esi@1 1795 signed int v2; // esi@1
1796 1796
1797 v1 = Str1; 1797 for (uint i = 0; i < 11; ++i)
1798 v2 = 0; 1798 if (!strcmpi(Str1, _4E6BDC_loc_names[i]))
1799 while ( _strcmpi(v1, _4E6BDC_loc_names[v2]) ) 1799 return i + 1;
1800 { 1800 return 0;
1801 ++v2;
1802 if ( v2 >= 11 )
1803 return 0;
1804 }
1805 return v2 + 1;
1806 } 1801 }
1807 1802
1808 1803
1809 1804
1810 //----- (004488F7) -------------------------------------------------------- 1805 //----- (004488F7) --------------------------------------------------------