Mercurial > mm7
comparison GUIWindow.cpp @ 1429:c7489dd19f88
BuildingType_Tavern and CastSpellInfo_PushCastSpellInfo fix
author | Ritor1 |
---|---|
date | Thu, 01 Aug 2013 17:51:16 +0600 |
parents | 2423bc2af692 |
children | 71a2cf416478 |
comparison
equal
deleted
inserted
replaced
1428:50d1412cd2c0 | 1429:c7489dd19f88 |
---|---|
391 | 391 |
392 //----- (0041CD3B) -------------------------------------------------------- | 392 //----- (0041CD3B) -------------------------------------------------------- |
393 GUIButton *GUIWindow::GetControl(unsigned int uID) | 393 GUIButton *GUIWindow::GetControl(unsigned int uID) |
394 { | 394 { |
395 GUIButton *result; // eax@1 | 395 GUIButton *result; // eax@1 |
396 unsigned int v3; // ecx@1 | |
397 | 396 |
398 result = this->pControlsHead; | 397 result = this->pControlsHead; |
399 v3 = uID; | 398 for ( uID; uID; --uID ) |
400 if ( (signed int)uID > 0 ) | 399 result = result->pNext; |
401 { | |
402 do | |
403 { | |
404 result = result->pNext; | |
405 --v3; | |
406 } | |
407 while ( v3 ); | |
408 } | |
409 return result; | 400 return result; |
410 } | 401 } |
411 | 402 |
412 //----- (00411BFC) -------------------------------------------------------- | 403 //----- (00411BFC) -------------------------------------------------------- |
413 void GUIWindow::InitializeBookView() | 404 void GUIWindow::InitializeBookView() |
1104 break; | 1095 break; |
1105 case BuildingType_Jail: | 1096 case BuildingType_Jail: |
1106 JailDialog(); | 1097 JailDialog(); |
1107 break; | 1098 break; |
1108 default: | 1099 default: |
1109 __debugbreak();//New BuildingType | 1100 //__debugbreak();//New BuildingType (if enter Boat) |
1110 break; | 1101 break; |
1111 } | 1102 } |
1112 } | 1103 } |
1113 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) | 1104 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) |
1114 { | 1105 { |