1
This commit is contained in:
parent
e5f23af683
commit
9196746e6c
@ -117,7 +117,13 @@ void Android::InternalUpdate(int delta_time)
|
||||
return;
|
||||
}
|
||||
}
|
||||
#ifdef DEBUG
|
||||
if (!Global::Instance()->stop_world) {
|
||||
agent_->Exec();
|
||||
}
|
||||
#else
|
||||
agent_->Exec();
|
||||
#endif
|
||||
}
|
||||
|
||||
void Android::GiveEquip()
|
||||
|
@ -16,6 +16,7 @@ class Global : public a8::Singleton<Global>
|
||||
static ColliderComponent* last_collider;
|
||||
int traversing_cell_creature_count = 0;
|
||||
int verify_set_pos = 0;
|
||||
bool stop_world = false;
|
||||
};
|
||||
|
||||
bool IsValidSlotId(int slot_id);
|
||||
|
@ -1074,6 +1074,10 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
|
||||
VP_Gas,
|
||||
TEXT("battle_server_killer_gas", "毒圈"),
|
||||
dmg_out);
|
||||
} else if (cmd == "stop_world") {
|
||||
Global::Instance()->stop_world = true;
|
||||
} else if (cmd == "start_world") {
|
||||
Global::Instance()->stop_world = false;
|
||||
} else if (cmd == "add_hp") {
|
||||
if (cmds.size() > 1) {
|
||||
float hp = a8::XValue(cmds[1]).GetDouble();
|
||||
|
Loading…
x
Reference in New Issue
Block a user