mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
Remove unneeded index restriction from GetUDMFInt/Fixed
This commit is contained in:
parent
a64ebc720b
commit
9721c025c1
1 changed files with 12 additions and 18 deletions
|
@ -343,8 +343,6 @@ int GetUDMFInt(int type, int index, const char *key)
|
|||
{
|
||||
assert(type >=0 && type <=3);
|
||||
|
||||
if (index > 0)
|
||||
{
|
||||
FUDMFKeys *pKeys = UDMFKeys[type].CheckKey(index);
|
||||
|
||||
if (pKeys != NULL)
|
||||
|
@ -355,7 +353,6 @@ int GetUDMFInt(int type, int index, const char *key)
|
|||
return pKey->IntVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -363,8 +360,6 @@ fixed_t GetUDMFFixed(int type, int index, const char *key)
|
|||
{
|
||||
assert(type >=0 && type <=3);
|
||||
|
||||
if (index > 0)
|
||||
{
|
||||
FUDMFKeys *pKeys = UDMFKeys[type].CheckKey(index);
|
||||
|
||||
if (pKeys != NULL)
|
||||
|
@ -375,7 +370,6 @@ fixed_t GetUDMFFixed(int type, int index, const char *key)
|
|||
return FLOAT2FIXED(pKey->FloatVal);
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue