This commit is contained in:
aozhiwei 2023-03-21 14:51:15 +08:00
parent 9196746e6c
commit ec91ab85fe
3 changed files with 4 additions and 3 deletions

View File

@ -118,7 +118,7 @@ void Android::InternalUpdate(int delta_time)
}
}
#ifdef DEBUG
if (!Global::Instance()->stop_world) {
if (!room->stop_world) {
agent_->Exec();
}
#else

View File

@ -1075,9 +1075,9 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
TEXT("battle_server_killer_gas", "毒圈"),
dmg_out);
} else if (cmd == "stop_world") {
Global::Instance()->stop_world = true;
room->stop_world = true;
} else if (cmd == "start_world") {
Global::Instance()->stop_world = false;
room->stop_world = false;
} else if (cmd == "add_hp") {
if (cmds.size() > 1) {
float hp = a8::XValue(cmds[1]).GetDouble();

View File

@ -70,6 +70,7 @@ public:
const mt::PveGemini* pve_instance = nullptr;
int pve_human_num = 0;
PveData pve_data;
bool stop_world = false;
~Room();
void InitData(RoomInitInfo& init_info);