comparison Actor.cpp @ 187:49728858c35e

On player voices
author Nomad
date Fri, 15 Feb 2013 22:38:05 +0200
parents cca78efb377e
children 207b2492e14b
comparison
equal deleted inserted replaced
186:d65528fc3bda 187:49728858c35e
153 unsigned int v8; // eax@8 153 unsigned int v8; // eax@8
154 int v9; // esi@8 154 int v9; // esi@8
155 int v10; // eax@11 155 int v10; // eax@11
156 GUIWindow *v11; // ecx@19 156 GUIWindow *v11; // ecx@19
157 signed int v12; // eax@21 157 signed int v12; // eax@21
158 int v13; // [sp-8h] [bp-44h]@34 158 //int v13; // [sp-8h] [bp-44h]@34
159 const char *v14; // [sp-4h] [bp-40h]@4 159 const char *v14; // [sp-4h] [bp-40h]@4
160 int v15; // [sp-4h] [bp-40h]@34 160 //int v15; // [sp-4h] [bp-40h]@34
161 signed int v16; // [sp-4h] [bp-40h]@35 161 signed int v16; // [sp-4h] [bp-40h]@35
162 int v17; // [sp+10h] [bp-2Ch]@1 162 int v17; // [sp+10h] [bp-2Ch]@1
163 char pContainer[32]; // [sp+14h] [bp-28h]@3 163 char pContainer[32]; // [sp+14h] [bp-28h]@3
164 164
165 auto a1 = this; 165 auto a1 = this;
269 pDialogueWindow->CreateButton(177u, 424u, 0x1Fu, 0x28u, 2, 94, 0x6Eu, 2u, 0x32u, "", 0); 269 pDialogueWindow->CreateButton(177u, 424u, 0x1Fu, 0x28u, 2, 94, 0x6Eu, 2u, 0x32u, "", 0);
270 pDialogueWindow->CreateButton(292u, 424u, 0x1Fu, 0x28u, 2, 94, 0x6Eu, 3u, 0x33u, "", 0); 270 pDialogueWindow->CreateButton(292u, 424u, 0x1Fu, 0x28u, 2, 94, 0x6Eu, 3u, 0x33u, "", 0);
271 pDialogueWindow->CreateButton(407u, 424u, 0x1Fu, 0x28u, 2, 94, 0x6Eu, 4u, 0x34u, "", 0); 271 pDialogueWindow->CreateButton(407u, 424u, 0x1Fu, 0x28u, 2, 94, 0x6Eu, 4u, 0x34u, "", 0);
272 if ( v17 && uActiveCharacter && !(v5->uFlags & 0x80) ) 272 if ( v17 && uActiveCharacter && !(v5->uFlags & 0x80) )
273 { 273 {
274 if ( pParty->uCurrentHour < 5 || pParty->uCurrentHour > 0x15 ) 274 __debugbreak(); // find out what's the speech
275 { 275 if (pParty->uCurrentHour < 5 || pParty->uCurrentHour > 21)
276 v15 = 0; 276 pPlayers[uActiveCharacter]->PlaySound(SPEECH_23, 0);
277 v13 = 23;
278 }
279 else 277 else
280 { 278 pPlayers[uActiveCharacter]->PlaySound(SPEECH_22, 0);
281 v15 = 0;
282 v13 = 22;
283 }
284 pPlayers[uActiveCharacter]->PlaySound(v13, v15);
285 } 279 }
286 } 280 }
287 281
288 282
289 //----- (0040894B) -------------------------------------------------------- 283 //----- (0040894B) --------------------------------------------------------