Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __thiscall UpdateStartTimer(Algae *this,bool bThroughDoor)
- {
- int iVar1;
- int32_t iVar2;
- float fVar3;
- float fVar4;
- iVar1 = (*(this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable[10])();
- if ((char)iVar1 == '\0') {
- if (this->fStartTimer == 0.00000000) {
- if (RNG == false) {
- iVar2 = random32();
- }
- else {
- iVar2 = rand();
- }
- this->fStartTimer = (float)(iVar2 % 0x46 + 10);
- }
- fVar4 = 0.05000000;
- if (bThroughDoor != false) {
- fVar4 = 0.00000000;
- }
- fVar3 = GetSpeedFactor(&FPSControl);
- fVar4 = this->fStartTimer - fVar3 * fVar4;
- if (fVar4 < 0.00000000) {
- this->fStartTimer = 0.00000000;
- *(undefined4 *)&(this->super_Spreadable).super_Repairable.super_ShipObject.field_0xc =
- 0x42c80000;
- return;
- }
- this->fStartTimer = fVar4;
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment