extensions/sdktools/vhelpers.cpp
changeset 2583 d3b2571c378b
parent 2400 76b7b4575e21
child 2746 8d68569b9648
     1.1 --- a/extensions/sdktools/vhelpers.cpp	Sun Feb 08 15:40:48 2009 -0500
     1.2 +++ b/extensions/sdktools/vhelpers.cpp	Wed Feb 18 02:19:22 2009 -0600
     1.3 @@ -420,7 +420,7 @@
     1.4  
     1.5  CON_COMMAND(sm_dump_netprops_xml, "Dumps the networkable property table as an XML file")
     1.6  {
     1.7 -#if SOURCE_ENGINE == SE_EPISODEONE
     1.8 +#if SOURCE_ENGINE <= SE_DARKMESSIAH
     1.9  	CCommand args;
    1.10  #endif
    1.11  
    1.12 @@ -462,7 +462,7 @@
    1.13  
    1.14  CON_COMMAND(sm_dump_netprops, "Dumps the networkable property table as a text file")
    1.15  {
    1.16 -#if SOURCE_ENGINE == SE_EPISODEONE
    1.17 +#if SOURCE_ENGINE <= SE_DARKMESSIAH
    1.18  	CCommand args;
    1.19  #endif
    1.20  
    1.21 @@ -517,7 +517,7 @@
    1.22  
    1.23  CON_COMMAND(sm_dump_classes, "Dumps the class list as a text file")
    1.24  {
    1.25 -#if SOURCE_ENGINE == SE_EPISODEONE
    1.26 +#if SOURCE_ENGINE <= SE_DARKMESSIAH
    1.27  	CCommand args;
    1.28  #endif
    1.29  
    1.30 @@ -605,7 +605,6 @@
    1.31  		fprintf(fp,"%s - %s\n",sclass->GetName(), dict->m_Factories.GetElementName(i));
    1.32  
    1.33  		typedescription_t *datamap = gamehelpers->FindInDataMap(gamehelpers->GetDataMap(entity->GetBaseEntity()), "m_iEFlags");
    1.34 -		
    1.35  		int *eflags = (int *)((char *)entity->GetBaseEntity() + datamap->fieldOffset[TD_OFFSET_NORMAL]);
    1.36  		*eflags |= (1<<0); // EFL_KILLME
    1.37  	}
    1.38 @@ -710,7 +709,7 @@
    1.39  
    1.40  CON_COMMAND(sm_dump_datamaps, "Dumps the data map list as a text file")
    1.41  {
    1.42 -#if SOURCE_ENGINE == SE_EPISODEONE
    1.43 +#if SOURCE_ENGINE <= SE_DARKMESSIAH
    1.44  	CCommand args;
    1.45  #endif
    1.46