mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-30 19:52:17 +01:00
Re-bumped all version numbers again (SourceHook=2, Plugin=7/7)
Fixed bug where gamedlls setting new game names would not work Moved PM's virtual destructor to bottom of vtable --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40117
This commit is contained in:
parent
3130242ca8
commit
71d74c6722
@ -55,8 +55,7 @@ public:
|
||||
{ return m_pOrig->GetTickInterval(); }
|
||||
virtual ServerClass *GetAllServerClasses( void )
|
||||
{ return m_pOrig->GetAllServerClasses(); }
|
||||
virtual const char *GetGameDescription( void )
|
||||
{ return m_GameDescBuffer; }
|
||||
virtual const char *GetGameDescription( void );
|
||||
virtual void CreateNetworkStringTables( void )
|
||||
{ m_pOrig->CreateNetworkStringTables(); }
|
||||
virtual CSaveRestoreData *SaveInit( int size )
|
||||
|
@ -443,6 +443,18 @@ bool CServerGameDLL::LevelInit( char const *pMapName, char const *pMapEntities,
|
||||
return m_pOrig->LevelInit(pMapName, pMapEntities, pOldLevel, pLandmarkName, loadGame, background);
|
||||
}
|
||||
|
||||
const char *CServerGameDLL::GetGameDescription()
|
||||
{
|
||||
if (m_pOrig)
|
||||
{
|
||||
const char *game = m_pOrig->GetGameDescription();
|
||||
if (game)
|
||||
strcpy(m_GameDescBuffer, game);
|
||||
}
|
||||
|
||||
return m_GameDescBuffer;
|
||||
}
|
||||
|
||||
#if defined __GNUC__ && (__GNUC__ == 3)
|
||||
void * ::operator new(size_t size) {
|
||||
return(calloc(1, size));
|
||||
|
Loading…
x
Reference in New Issue
Block a user