extensions/sdktools/tempents.cpp
changeset 1587 24592891b247
parent 1560 83d5d567af27
child 1588 5ce5ddb0f3f6
     1.1 --- a/extensions/sdktools/tempents.cpp	Tue Oct 16 06:03:28 2007 +0000
     1.2 +++ b/extensions/sdktools/tempents.cpp	Tue Oct 16 17:17:08 2007 +0000
     1.3 @@ -273,6 +273,7 @@
     1.4  	m_Loaded = false;
     1.5  
     1.6  	/* Read our sigs and offsets from the config file */
     1.7 +#if defined PLATFORM_WINDOWS
     1.8  	if (!g_pGameConf->GetMemSig("CBaseTempEntity", &addr) || !addr)
     1.9  	{
    1.10  		return;
    1.11 @@ -281,6 +282,16 @@
    1.12  	{
    1.13  		return;
    1.14  	}
    1.15 +	/* Store the head of the TE linked list */
    1.16 +	m_ListHead = **(void ***)((unsigned char *)addr + offset);
    1.17 +#else
    1.18 +	if (!g_pGameConf->GetMemSig("s_pTempEntities", &offset))
    1.19 +	{
    1.20 +		return;
    1.21 +	}
    1.22 +	/* Store the head of the TE linked list */
    1.23 +	m_ListHead = *(void **)addr;
    1.24 +#endif
    1.25  	if (!g_pGameConf->GetOffset("GetTEName", &m_NameOffs))
    1.26  	{
    1.27  		return;
    1.28 @@ -294,9 +305,6 @@
    1.29  		return;
    1.30  	}
    1.31  
    1.32 -	/* Store the head of the TE linked list */
    1.33 -	m_ListHead = **(void ***)((unsigned char *)addr + offset);
    1.34 -
    1.35  	/* Create our trie */
    1.36  	m_TempEntInfo = adtfactory->CreateBasicTrie();
    1.37