Skip to content

Commit

Permalink
clear landmark without any conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
khanghugo committed Jul 12, 2024
1 parent ea3dad2 commit 2281caf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BunnymodXT/modules/HwDLL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7657,10 +7657,12 @@ HOOK_DEF_0(HwDLL, void, __cdecl, R_DrawSkyBox)
HOOK_DEF_3(HwDLL, int, __cdecl, SV_SpawnServer, int, bIsDemo, char*, server, char*, startspot)
{
auto ret = ORIG_SV_SpawnServer(bIsDemo, server, startspot);

ServerDLL::GetInstance().ClearTPLandmarks();

if (ret) {
Interprocess::WriteMapChange(CustomHud::GetTime(), server);
lastLoadedMap = server;
ServerDLL::GetInstance().ClearTPLandmarks();
}

if (insideHost_Loadgame_f) {
Expand Down

0 comments on commit 2281caf

Please sign in to comment.