1
This commit is contained in:
parent
8fdb361ff9
commit
efecc8184f
@ -77,7 +77,7 @@ void Android::Update(int delta_time)
|
||||
#ifdef DEBUG
|
||||
if (room->BattleStarted()) {
|
||||
if (!dead &&
|
||||
App::Instance()->debug_params.find(119) != App::Instance()->debug_params.end()) {
|
||||
room->debug_params.find(119) != room->debug_params.end()) {
|
||||
BeKill(VP_Gas,
|
||||
TEXT("battle_server_killer_gas", "毒圈"),
|
||||
VW_Gas,
|
||||
|
@ -17,6 +17,9 @@
|
||||
|
||||
void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
|
||||
{
|
||||
#ifndef DEBUG
|
||||
return;
|
||||
#endif
|
||||
std::vector<std::string> cmds;
|
||||
a8::Split(msg.cmd().c_str(), cmds, ' ');
|
||||
if (cmds.empty()) {
|
||||
@ -128,15 +131,7 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
|
||||
#endif
|
||||
} else if (cmd == "chiji") {
|
||||
#if DEBUG
|
||||
if (cmds.size() >= 2) {
|
||||
if (cmds[1] == "open") {
|
||||
App::Instance()->debug_params[119] = 1;
|
||||
} else if (cmds[1] == "close") {
|
||||
App::Instance()->debug_params.erase(119);
|
||||
}
|
||||
} else {
|
||||
App::Instance()->debug_params[119] = 1;
|
||||
}
|
||||
room->debug_params[119] = 1;
|
||||
#endif
|
||||
} else if (cmd == "autodie") {
|
||||
#if DEBUG
|
||||
|
@ -77,6 +77,9 @@ public:
|
||||
bool stop_world = false;
|
||||
//target_uniid, frameno
|
||||
std::map<int, long long> report_bullet_hash;
|
||||
#ifdef DEBUG
|
||||
std::map<int, int> debug_params;
|
||||
#endif
|
||||
|
||||
~Room();
|
||||
void InitData(RoomInitInfo& init_info);
|
||||
|
Loading…
x
Reference in New Issue
Block a user