This commit is contained in:
aozhiwei 2020-07-16 10:48:38 +08:00
parent 44cd830ee0
commit 6995c93b09
2 changed files with 2 additions and 6 deletions

View File

@ -278,12 +278,6 @@ enum ObjectSyncFlags_e
kOsfIsDead = 0, kOsfIsDead = 0,
}; };
enum AiCommand_e
{
kAiNone = 0,
};
const char* const PROJ_NAME_FMT = "game%d_gameserver"; const char* const PROJ_NAME_FMT = "game%d_gameserver";
const char* const PROJ_ROOT_FMT = "/data/logs/%s"; const char* const PROJ_ROOT_FMT = "/data/logs/%s";

View File

@ -1006,10 +1006,12 @@ void Human::BeKill(int killer_id, const std::string& killer_name, int weapon_id)
void Human::DecHP(float dec_hp, int killer_id, const std::string& killer_name, int weapon_id) void Human::DecHP(float dec_hp, int killer_id, const std::string& killer_name, int weapon_id)
{ {
#ifdef DEBUG #ifdef DEBUG
#if 0
if (IsPlayer()) { if (IsPlayer()) {
return; return;
} }
#endif #endif
#endif
auto downed_func = [] (const a8::XParams& param) auto downed_func = [] (const a8::XParams& param)
{ {
Human* hum = (Human*)param.sender.GetUserData(); Human* hum = (Human*)param.sender.GetUserData();