Advertisement
dragonbane

TP dEvDtEvent_c::finishCheck

Dec 25th, 2019
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. bool __thiscall finishCheck(dEvDtEvent_c *this)
  2. {
  3.   int offset = 0;
  4.  
  5.   for (int i = 0; i < 3; i++) {
  6.  
  7.     //Checks 3x4 byte flags stored at dEvDtEvent_c + 0x88-0x90
  8.     int flagAddress = *(int*)(this + 0x88 + offset)
  9.     if (flagAddress == -1) {
  10.       return true;
  11.     }
  12.  
  13.     int checkResult = flagCheck((dEvDtFlag_c *)&DAT_8040b374 (g_dComIfG_gameInfo + 0x51B4), flagAddress);
  14.     if (checkResult == 0)
  15.       return false;
  16.  
  17.     offset += 4;
  18.   }
  19.   return true;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement