RattletraPM5

Untitled

Jul 6th, 2020
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. void __thiscall OnRender(Algae *this)
  2.  
  3. {
  4. float fVar1;
  5. int iVar2;
  6.  
  7. if (0.00000000 < *(float *)&(this->super_Spreadable).super_Repairable.super_ShipObject.field_0xc)
  8. {
  9. GL_DrawRect((float)(this->super_Spreadable).super_Repairable.pLoc.x,
  10. (float)(this->super_Spreadable).super_Repairable.pLoc.y,35.00000000,35.00000000); //<-- Sprite size
  11. fVar1 = (this->super_Spreadable).super_Repairable.fMaxDamage; //<-- Damage value
  12. GL_DrawRect((float)(this->super_Spreadable).super_Repairable.pLoc.x,
  13. (float)((this->super_Spreadable).super_Repairable.pLoc.y + 0x23) - 6.00000000,
  14. (fVar1 - *(float *)&(this->super_Spreadable).super_Repairable.super_ShipObject.
  15. field_0xc) * (35.00000000 / fVar1),6.00000000);
  16. }
  17. iVar2 = (*(this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable[3])(this);
  18. if (iVar2 == 0) {
  19. return;
  20. }
  21. // WARNING: Could not recover jumptable at 0x0047f7b2. Too many branches
  22. // WARNING: Treating indirect jump as call
  23. (*(this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable[0x13])(this);
  24. return;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment