This commit is contained in:
aozhiwei 2023-10-30 17:53:19 +08:00
parent 2652355cba
commit 9db1d2d575
3 changed files with 4 additions and 1 deletions

View File

@ -524,6 +524,7 @@ enum BtEvent_e
{
kUnderAttackEvent = 0,
kMasterUnderAttackEvent = 1,
kMobaModeReviveEvent = 2,
};
const char* const PROJ_NAME_FMT = "game%d_gameserver";

View File

@ -132,6 +132,8 @@ class Creature : public MoveableEntity
a8::XTimerWp nature_recover_hp_idle_timer;
int side = 0;
int road_idx = 0;
int point_idx = 0;
Creature();
virtual ~Creature() override;

View File

@ -361,7 +361,7 @@ namespace mt
const std::tuple<std::shared_ptr<WorldObject>, int>& b) {
return std::get<0>(a)->pos.x < std::get<0>(b)->pos.x;
});
if (!points.empty()) {
if (points.size() < 3) {
abort();
}
}