Skip to content

Commit

Permalink
Fix demo recording natives on CS:GO linux
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed May 4, 2016
1 parent c0f6340 commit b8e9696
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hltvserverwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,16 +416,16 @@ IDemoRecorder *HLTVServerWrapperManager::GetDemoRecorderPtr(IHLTVServer *hltv)

if (hltv)
{
#if SOURCE_ENGINE == SE_CSGO
return (IDemoRecorder *)((intptr_t)hltv + offset);
#else
IServer *baseServer = hltv->GetBaseServer();
#ifndef WIN32
return (IDemoRecorder *)((intptr_t)baseServer + offset - 4);
#else
#if SOURCE_ENGINE == SE_CSGO
return (IDemoRecorder *)((intptr_t)hltv + offset);
#else
return (IDemoRecorder *)((intptr_t)baseServer + offset);
#endif // WIN32
#endif // SOURCE_ENGINE == SE_CSGO
#endif // !WIN32
}
else
{
Expand Down

0 comments on commit b8e9696

Please sign in to comment.