This commit is contained in:
aozhiwei 2023-04-12 15:01:56 +08:00
parent 8e50ea6aea
commit 7838ebdbc4
2 changed files with 6 additions and 2 deletions

View File

@ -84,8 +84,8 @@ bool AirRaid::GenAirRaidPos(const mt::AirRaid* raid_meta, glm::vec3& center)
}
}
}
#ifdef DEBUG1
if (humans.size() > 0) {
#ifdef DEBUG
if (humans.size() > 0 && room_->debug_params.find(121) != room_->debug_params.end()) {
center = humans[0]->GetPos().ToGlmVec3();
}
#endif

View File

@ -133,6 +133,10 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
#if DEBUG
room->debug_params[119] = 1;
#endif
} else if (cmd == "airraid") {
#if DEBUG
room->debug_params[121] = 1;
#endif
} else if (cmd == "autodie") {
#if DEBUG
if (cmds.size() >= 2) {