comparison mm7_3.cpp @ 601:d59398528e4f

level events loading fix
author Gloval
date Thu, 07 Mar 2013 01:07:45 +0400
parents bcae3e06cadb
children 628694cd5744
comparison
equal deleted inserted replaced
600:db4a23580e6c 601:d59398528e4f
13308 13308
13309 } 13309 }
13310 13310
13311 13311
13312 //----- (00443E31) -------------------------------------------------------- 13312 //----- (00443E31) --------------------------------------------------------
13313 void __cdecl LoadLevel_InitializeLevelStr() 13313 void LoadLevel_InitializeLevelStr()
13314 { 13314 {
13315 13315
13316 char Args[100]; 13316 char Args[100];
13317 int string_num; 13317 int string_num;
13318 int max_string_length; 13318 int max_string_length;
13319 int current_string_length; 13319 int current_string_length;
13415 13415
13416 auto _evt = (_evt_raw *)(pLevelEVT + pEvent.uEventOffsetInEVT); 13416 auto _evt = (_evt_raw *)(pLevelEVT + pEvent.uEventOffsetInEVT);
13417 13417
13418 if (_evt->_e_type == EVENT_PlaySound) 13418 if (_evt->_e_type == EVENT_PlaySound)
13419 { 13419 {
13420 pSoundList->LoadSound( 13420 pSoundList->LoadSound(EVT_DWORD(_evt->v5), 0);
13421 _evt->v5 +
13422 ((_evt->v6 + ((_evt->v7 + ((unsigned int)_evt->v8 << 8)) << 8)) << 8),
13423 0);
13424 } 13421 }
13425 else if (_evt->_e_type == EVENT_OnMapReload) 13422 else if (_evt->_e_type == EVENT_OnMapReload)
13426 { 13423 {
13427 start_event_seq_number = pEvent.event_sequence_num; 13424 start_event_seq_number = pEvent.event_sequence_num;
13428 EventProcessor(pEvent.uEventID, 0, 0); 13425 EventProcessor(pEvent.uEventID, 0, 0);