Mercurial > mm7
comparison mm7_6.cpp @ 2245:8817c398b792
for RasterLine2D
author | Ritor1 |
---|---|
date | Tue, 25 Feb 2014 20:02:06 +0600 |
parents | c4f87fb3cfee |
children | aff7a7b072b7 |
comparison
equal
deleted
inserted
replaced
2244:66c509997062 | 2245:8817c398b792 |
---|---|
209 } | 209 } |
210 } | 210 } |
211 result = a3; | 211 result = a3; |
212 } | 212 } |
213 else | 213 else |
214 { | |
215 result = 0; | 214 result = 0; |
216 } | |
217 return result; | 215 return result; |
218 } | 216 } |
219 | 217 |
220 //----- (00427662) -------------------------------------------------------- | 218 //----- (00427662) -------------------------------------------------------- |
221 bool stru319::GetMagicalResistance(Actor *pActor, unsigned int uType) | 219 bool stru319::GetMagicalResistance(Actor *pActor, unsigned int uType) |
277 pMessages[uNumMessages].param = param; | 275 pMessages[uNumMessages].param = param; |
278 pMessages[uNumMessages++].field_8 = a4; | 276 pMessages[uNumMessages++].field_8 = a4; |
279 } | 277 } |
280 } | 278 } |
281 | 279 |
282 | |
283 //----- (0042EBDB) -------------------------------------------------------- | 280 //----- (0042EBDB) -------------------------------------------------------- |
284 int stru193_math::Sin(int angle) | 281 int stru193_math::Sin(int angle) |
285 { | 282 { |
286 return Cos(angle - this->uIntegerHalfPi); | 283 return Cos(angle - this->uIntegerHalfPi); |
287 } | 284 } |
288 | 285 |
289 //----- (0042ECB5) -------------------------------------------------------- | 286 //----- (0042ECB5) -------------------------------------------------------- |
290 void _42ECB5_PlayerAttacksActor() | 287 void _42ECB5_PlayerAttacksActor() |
291 { | 288 { |
292 //unsigned int v0; // ebx@1 | |
293 //Player *v1; // esi@1 | |
294 //bool result; // eax@1 | |
295 //int v3; // edi@2 | |
296 //unsigned int v4; // eax@7 | |
297 char *v5; // eax@8 | 289 char *v5; // eax@8 |
298 //int v6; // ecx@9 | |
299 //signed int v7; // eax@16 | |
300 //Actor *v8; // edi@20 | |
301 unsigned int v9; // ecx@21 | 290 unsigned int v9; // ecx@21 |
302 //char *v10; // eax@26 | |
303 char *v11; // eax@26 | 291 char *v11; // eax@26 |
304 unsigned int v12; // eax@47 | 292 unsigned int v12; // eax@47 |
305 //char *v13; // eax@47 | |
306 //char *v14; // eax@47 | |
307 //unsigned int v15; // ebx@54 | |
308 //int v16; // [sp-10h] [bp-4Ch]@24 | |
309 //int v17; // [sp-10h] [bp-4Ch]@44 | |
310 //unsigned int v18; // [sp-Ch] [bp-48h]@24 | |
311 //unsigned int v19; // [sp-Ch] [bp-48h]@44 | |
312 //__int16 v20; // [sp-8h] [bp-44h]@24 | |
313 //__int16 v21; // [sp-8h] [bp-44h]@44 | |
314 //int v22; // [sp-4h] [bp-40h]@24 | |
315 //int v23; // [sp-4h] [bp-40h]@44 | |
316 SoundID v24; // [sp-4h] [bp-40h]@58 | 293 SoundID v24; // [sp-4h] [bp-40h]@58 |
317 //Vec3_int_ a3; // [sp+Ch] [bp-30h]@19 | 294 |
318 //unsigned int a2; // [sp+18h] [bp-24h]@20 | |
319 //unsigned int v27; // [sp+1Ch] [bp-20h]@1 | |
320 //int v28; // [sp+20h] [bp-1Ch]@9 | |
321 //unsigned int *v28b; | |
322 //int v29; // [sp+24h] [bp-18h]@16 | |
323 //int v30; // [sp+28h] [bp-14h]@16 | |
324 //int v31; // [sp+2Ch] [bp-10h]@4 | |
325 //int v32; // [sp+30h] [bp-Ch]@7 | |
326 //int v33; // [sp+34h] [bp-8h]@7 | |
327 //int v34; // [sp+38h] [bp-4h]@17 | |
328 | |
329 //v0 = uActiveCharacter; | |
330 //v27 = 6972 * uActiveCharacter; | |
331 //v1 = &pParty->pPlayers[uActiveCharacter-1]; | |
332 //result = pParty->pPlayers[uActiveCharacter-1].CanAct(); | 295 //result = pParty->pPlayers[uActiveCharacter-1].CanAct(); |
333 Player* player = &pParty->pPlayers[uActiveCharacter - 1]; | 296 Player* player = &pParty->pPlayers[uActiveCharacter - 1]; |
334 if (!player->CanAct()) | 297 if (!player->CanAct()) |
335 return; | 298 return; |
336 | 299 |