mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2025-02-17 11:27:50 +00:00
CChopper::WaitForTrigger
This commit is contained in:
parent
40326ea85d
commit
d955adb373
27
chopper.cpp
27
chopper.cpp
@ -2,6 +2,33 @@
|
||||
#include "validate.h"
|
||||
#include "utils.h"
|
||||
|
||||
// @Ok
|
||||
void __inline CChopper::WaitForTrigger(void)
|
||||
{
|
||||
switch (this->dumbAssPad)
|
||||
{
|
||||
case 0:
|
||||
|
||||
if (this->field_218 & 4)
|
||||
{
|
||||
this->field_218 &= 0xFB;
|
||||
if (this->GetNextWaypoint())
|
||||
{
|
||||
this->dumbAssPad = 0;
|
||||
this->field_31C.bothFlags = 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
this->dumbAssPad = 0;
|
||||
this->field_31C.bothFlags = 1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
print_if_false(0, "Unknown substate!");
|
||||
}
|
||||
}
|
||||
|
||||
// @NotOk
|
||||
// verify later
|
||||
void CBulletFrag::Move()
|
||||
|
Loading…
x
Reference in New Issue
Block a user