mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 07:57:52 +00:00
This commit is contained in:
commit
a1473c48c3
5 changed files with 20 additions and 8 deletions
|
@ -1538,6 +1538,13 @@ FBaseCVar *FindCVar (const char *var_name, FBaseCVar **prev)
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINE_ACTION_FUNCTION(_CVar, FindCVar)
|
DEFINE_ACTION_FUNCTION(_CVar, FindCVar)
|
||||||
|
{
|
||||||
|
PARAM_PROLOGUE;
|
||||||
|
PARAM_NAME(name);
|
||||||
|
ACTION_RETURN_POINTER(FindCVar(name, nullptr));
|
||||||
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION(_CVar, GetCVar)
|
||||||
{
|
{
|
||||||
PARAM_PROLOGUE;
|
PARAM_PROLOGUE;
|
||||||
PARAM_NAME(name);
|
PARAM_NAME(name);
|
||||||
|
|
|
@ -72,8 +72,13 @@ class USDFParser : public UDMFParserBase
|
||||||
}
|
}
|
||||||
type = cls;
|
type = cls;
|
||||||
}
|
}
|
||||||
if (type && type->IsDescendantOf(RUNTIME_CLASS(AInventory))) return type;
|
return type;
|
||||||
return nullptr;
|
}
|
||||||
|
|
||||||
|
PClassActor *CheckInventoryActorType(const char *key)
|
||||||
|
{
|
||||||
|
PClassActor* const type = CheckActorType(key);
|
||||||
|
return nullptr != type && type->IsDescendantOf(RUNTIME_CLASS(AInventory)) ? type : nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
@ -94,7 +99,7 @@ class USDFParser : public UDMFParserBase
|
||||||
switch(key)
|
switch(key)
|
||||||
{
|
{
|
||||||
case NAME_Item:
|
case NAME_Item:
|
||||||
check.Item = CheckActorType(key);
|
check.Item = CheckInventoryActorType(key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Amount:
|
case NAME_Amount:
|
||||||
|
@ -273,7 +278,7 @@ class USDFParser : public UDMFParserBase
|
||||||
switch(key)
|
switch(key)
|
||||||
{
|
{
|
||||||
case NAME_Item:
|
case NAME_Item:
|
||||||
check.Item = CheckActorType(key);
|
check.Item = CheckInventoryActorType(key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Count:
|
case NAME_Count:
|
||||||
|
|
|
@ -1019,6 +1019,6 @@ void(*ScreenTriangle::RectDrawers32[])(const void *, int, int, int, const RectDr
|
||||||
&RectScreenDrawer32<TriScreenDrawerModes::ShadedBlend, TriScreenDrawerModes::FuzzSampler>::Execute // Fuzz
|
&RectScreenDrawer32<TriScreenDrawerModes::ShadedBlend, TriScreenDrawerModes::FuzzSampler>::Execute // Fuzz
|
||||||
};
|
};
|
||||||
|
|
||||||
int ScreenTriangle::FuzzStart = 0;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int ScreenTriangle::FuzzStart = 0;
|
||||||
|
|
|
@ -30,7 +30,6 @@ class FBitmap;
|
||||||
struct FRemapTable;
|
struct FRemapTable;
|
||||||
struct FCopyInfo;
|
struct FCopyInfo;
|
||||||
class FScanner;
|
class FScanner;
|
||||||
class PClassInventory;
|
|
||||||
|
|
||||||
// Texture IDs
|
// Texture IDs
|
||||||
class FTextureManager;
|
class FTextureManager;
|
||||||
|
|
|
@ -286,7 +286,8 @@ struct CVar native
|
||||||
CVAR_Color,
|
CVAR_Color,
|
||||||
};
|
};
|
||||||
|
|
||||||
native static CVar FindCVar(Name name, PlayerInfo player = null);
|
native static CVar FindCVar(Name name);
|
||||||
|
native static CVar GetCVar(Name name, PlayerInfo player = null);
|
||||||
native int GetInt();
|
native int GetInt();
|
||||||
native double GetFloat();
|
native double GetFloat();
|
||||||
native String GetString();
|
native String GetString();
|
||||||
|
|
Loading…
Reference in a new issue