- blocked off direct access to TAngle’s internal storage.
This commit is contained in:
parent
3d2578820b
commit
4032576519
31 changed files with 123 additions and 235 deletions
|
|
@ -380,7 +380,7 @@ void DBot::Pitch (AActor *target)
|
|||
|
||||
diff = target->Z() - player->mo->Z();
|
||||
aim = g_atan(diff / player->mo->Distance2D(target));
|
||||
player->mo->Angles.Pitch = DAngle::ToDegrees(aim);
|
||||
player->mo->Angles.Pitch = DAngle::fromRad(aim);
|
||||
}
|
||||
|
||||
//Checks if a sector is dangerous.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue