- Rewrote a bunch of things for stability.

This commit is contained in:
MajorCooke 2014-12-17 21:47:00 -06:00
commit 93ca8502dd
7 changed files with 117 additions and 17 deletions

View file

@ -1422,8 +1422,8 @@ DEFINE_PROPERTY(stamina, I, Actor)
DEFINE_PROPERTY(telefogsourcetype, S, Actor)
{
PROP_STRING_PARM(str, 0);
if (str == NULL || *str == 0 || (!stricmp(str,""))) defaults->TeleFogSourceType = "TeleportFog";
else defaults->TeleFogSourceType = str;
if (!stricmp(str,"") || *str == 0) defaults->TeleFogSourceType = PClass::FindClass("TeleportFog");
else defaults->TeleFogSourceType = FindClassTentative(str,"TeleportFog");
}
//==========================================================================
@ -1432,8 +1432,8 @@ DEFINE_PROPERTY(telefogsourcetype, S, Actor)
DEFINE_PROPERTY(telefogdesttype, S, Actor)
{
PROP_STRING_PARM(str, 0);
if (str == NULL || *str == 0 || (!stricmp(str, ""))) defaults->TeleFogDestType = "TeleportFog";
else defaults->TeleFogDestType = str;
if (!stricmp(str, "") || *str == 0) defaults->TeleFogDestType = PClass::FindClass("TeleportFog");
else defaults->TeleFogDestType = FindClassTentative(str, "TeleportFog");
}
//==========================================================================