comparison Events.cpp @ 762:cf2fbac6edc9

Misc cleaning
author Nomad
date Sat, 23 Mar 2013 19:47:01 +0200
parents 585490c29945
children a464d28566a6
comparison
equal deleted inserted replaced
759:b2468462a360 762:cf2fbac6edc9
1 #include <assert.h>
1 #include <stdlib.h> 2 #include <stdlib.h>
2 3
3 #include "MapInfo.h" 4 #include "MapInfo.h"
4 #include "Game.h" 5 #include "Game.h"
5 #include "GUIWindow.h" 6 #include "GUIWindow.h"
85 return uTextureSize; 86 return uTextureSize;
86 } 87 }
87 88
88 //----- (00443DA1) -------------------------------------------------------- 89 //----- (00443DA1) --------------------------------------------------------
89 void __cdecl Initialize_GlobalEVT() 90 void __cdecl Initialize_GlobalEVT()
90 { 91 {
91 struct raw_event_header 92 struct raw_event_header
92 { 93 {
93 unsigned char evt_size; 94 unsigned char evt_size;
94 unsigned char evt_id_l; 95 unsigned char evt_id_l;
95 unsigned char evt_id_h; 96 unsigned char evt_id_h;
114 offset_in+=current_hdr->evt_size+1; 115 offset_in+=current_hdr->evt_size+1;
115 current_hdr=(raw_event_header *)&pGlobalEVT[offset_in]; 116 current_hdr=(raw_event_header *)&pGlobalEVT[offset_in];
116 } 117 }
117 uGlobalEVT_NumEvents = events_count; 118 uGlobalEVT_NumEvents = events_count;
118 119
119 } 120 assert(uGlobalEVT_NumEvents < 4400);
121 }
120 122
121 123
122 //----- (00443EF8) -------------------------------------------------------- 124 //----- (00443EF8) --------------------------------------------------------
123 void LoadLevel_InitializeLevelEvt() 125 void LoadLevel_InitializeLevelEvt()
124 { 126 {