diff --git a/server/gameserver/pbutils.cc b/server/gameserver/pbutils.cc index e3601d1e..22e65c96 100644 --- a/server/gameserver/pbutils.cc +++ b/server/gameserver/pbutils.cc @@ -63,6 +63,7 @@ #include "mt/Skill.h" #include "mt/SafeArea.h" #include "mt/Map.h" +#include "mt/MapMode.h" #include "mt/PveGemini.h" #include "mt/PveGeminiMode.h" #include "mt/PveGeminiContent.h" @@ -1114,6 +1115,8 @@ void Human::FillSMGameOver(cs::SMGameOver& msg) p->set_game_over(room->IsGameOver() ? 1 : 0); p->set_victory(stats->victory ? 1 : 0); p->set_watchable(false); + p->set_map_mode_id(room->GetMapModeMeta()->id()); + p->set_map_mode(room->GetReportMapMode()); p->set_map_id(room->GetMapMeta()->map_id()); p->set_battle_uuid(GetTeam()->GetBattleUuid()); @@ -1168,6 +1171,8 @@ void Human::FillSMGameOver(cs::SMGameOver& msg) } } + p->set_map_mode_id(room->GetMapModeMeta()->id()); + p->set_map_mode(room->GetReportMapMode()); p->set_map_id(room->GetMapMeta()->map_id()); p->set_battle_uuid(GetTeam()->GetBattleUuid());