- Bot movement is now calculated locally.
This commit is contained in:
parent
c28c0b8f0b
commit
a613da43dd
9 changed files with 70 additions and 150 deletions
|
|
@ -30,8 +30,6 @@ DBot::DBot ()
|
|||
|
||||
void DBot::Clear ()
|
||||
{
|
||||
savedyaw = 0;
|
||||
savedpitch = 0;
|
||||
angle = 0;
|
||||
dest = NULL;
|
||||
prev = NULL;
|
||||
|
|
@ -59,9 +57,15 @@ void DBot::Serialize (FArchive &arc)
|
|||
{
|
||||
Super::Serialize (arc);
|
||||
|
||||
arc << savedyaw
|
||||
<< savedpitch
|
||||
<< angle
|
||||
if (SaveVersion < 4515)
|
||||
{
|
||||
angle_t savedyaw;
|
||||
int savedpitch;
|
||||
arc << savedyaw
|
||||
<< savedpitch;
|
||||
}
|
||||
|
||||
arc << angle
|
||||
<< dest
|
||||
<< prev
|
||||
<< enemy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue