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 #ifdef DEBUG
if (!Global::Instance()->stop_world) { if (!room->stop_world) {
agent_->Exec(); agent_->Exec();
} }
#else #else

View File

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

View File

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