Skip to content

Commit

Permalink
Fix HL2DM build
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed Dec 15, 2024
1 parent 287e9db commit df1ae83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion natives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ static cell_t Native_GetServerPort(IPluginContext *pContext, const cell_t *param
if (hltvserver == nullptr)
return 0;

#if SOURCE_ENGINE == SE_TF2
#if SOURCE_ENGINE == SE_TF2 || SOURCE_ENGINE == SE_HL2DM
return hltvserver->GetBaseServer()->GetLocalUDPPort();
#else
return hltvserver->GetBaseServer()->GetUDPPort();
Expand Down

0 comments on commit df1ae83

Please sign in to comment.