1
This commit is contained in:
parent
d8f71de4c5
commit
2cffb5332a
@ -10,6 +10,7 @@
|
|||||||
#include "creature.h"
|
#include "creature.h"
|
||||||
#include "human.h"
|
#include "human.h"
|
||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
|
#include "car.h"
|
||||||
|
|
||||||
#include "mt/Map.h"
|
#include "mt/Map.h"
|
||||||
|
|
||||||
@ -193,6 +194,9 @@ void Movement::ClearPath()
|
|||||||
is_find_path_ = false;
|
is_find_path_ = false;
|
||||||
path_index_ = 0;
|
path_index_ = 0;
|
||||||
paths_.clear();
|
paths_.clear();
|
||||||
|
if (owner_->IsCar() && owner_->AsCar()->GetDriver()) {
|
||||||
|
owner_->AsCar()->GetDriver()->GetMovement()->ClearPath();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t Movement::GetPathSize()
|
size_t Movement::GetPathSize()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user