mirror of
https://github.com/rehlds/reapi.git
synced 2024-12-28 15:45:31 +03:00
Fix: to get current mapname on first spawn (part 2)
This commit is contained in:
parent
71d6444c41
commit
5fffe5368a
@ -23,6 +23,10 @@ void OnAmxxAttach()
|
||||
// initialize API
|
||||
api_cfg.Init();
|
||||
g_pEdicts = g_engfuncs.pfnPEntityOfEntIndex(0);
|
||||
|
||||
// save true mapname
|
||||
strncpy(g_szMapName, STRING(gpGlobals->mapname), sizeof(g_szMapName) - 1);
|
||||
g_szMapName[sizeof(g_szMapName) - 1] = '\0';
|
||||
}
|
||||
|
||||
bool OnMetaAttach()
|
||||
|
Loading…
Reference in New Issue
Block a user