mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- A few more checks to be safe.
This commit is contained in:
parent
6f7c9f1f34
commit
160ded99a9
1 changed files with 3 additions and 3 deletions
|
@ -1422,7 +1422,7 @@ DEFINE_PROPERTY(stamina, I, Actor)
|
||||||
DEFINE_PROPERTY(telefogsourcetype, S, Actor)
|
DEFINE_PROPERTY(telefogsourcetype, S, Actor)
|
||||||
{
|
{
|
||||||
PROP_STRING_PARM(str, 0);
|
PROP_STRING_PARM(str, 0);
|
||||||
if (str == NULL) defaults->TeleFogSourceType = "TeleportFog";
|
if (str == NULL || *str == 0 || (!stricmp(str,""))) defaults->TeleFogSourceType = "TeleportFog";
|
||||||
else defaults->TeleFogSourceType = str;
|
else defaults->TeleFogSourceType = str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1432,8 +1432,8 @@ DEFINE_PROPERTY(telefogsourcetype, S, Actor)
|
||||||
DEFINE_PROPERTY(telefogdesttype, S, Actor)
|
DEFINE_PROPERTY(telefogdesttype, S, Actor)
|
||||||
{
|
{
|
||||||
PROP_STRING_PARM(str, 0);
|
PROP_STRING_PARM(str, 0);
|
||||||
if (str == NULL) defaults->TeleFogSourceType = "TeleportFog";
|
if (str == NULL || *str == 0 || (!stricmp(str, ""))) defaults->TeleFogDestType = "TeleportFog";
|
||||||
defaults->TeleFogDestType = str;
|
else defaults->TeleFogDestType = str;
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
Loading…
Reference in a new issue