1
This commit is contained in:
parent
cb9d71cb3f
commit
e81a467e2a
@ -28,6 +28,7 @@
|
|||||||
#include "effect.h"
|
#include "effect.h"
|
||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
#include "team.h"
|
#include "team.h"
|
||||||
|
#include "bornpoint.h"
|
||||||
|
|
||||||
#include "mt/Param.h"
|
#include "mt/Param.h"
|
||||||
#include "mt/Hero.h"
|
#include "mt/Hero.h"
|
||||||
@ -2560,15 +2561,22 @@ void Creature::OnLand()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!ok) {
|
|
||||||
abort();
|
|
||||||
}
|
|
||||||
#if 1
|
#if 1
|
||||||
if (point.y < 1.2) {
|
if (point.y < 1.2) {
|
||||||
point.y = 3.0f;
|
point.y = 3.0f;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if (!ok) {
|
||||||
|
#if 1
|
||||||
|
if (IsHuman()) {
|
||||||
|
point = AsHuman()->born_point->RandPoint().ToGlmVec3();
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
abort();
|
||||||
|
#endif
|
||||||
|
} else {
|
||||||
room->map_instance->UnScale(point);
|
room->map_instance->UnScale(point);
|
||||||
|
}
|
||||||
Global::Instance()->verify_set_pos = 1;
|
Global::Instance()->verify_set_pos = 1;
|
||||||
GetMutablePos().FromGlmVec3(point);
|
GetMutablePos().FromGlmVec3(point);
|
||||||
Global::Instance()->verify_set_pos = 0;
|
Global::Instance()->verify_set_pos = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user