mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom
This commit is contained in:
commit
f8fd28118b
2 changed files with 12 additions and 10 deletions
|
@ -312,8 +312,13 @@ FString level_info_t::LookupLevelName()
|
||||||
{
|
{
|
||||||
mysnprintf (checkstring, countof(checkstring), "%d: ", atoi(&MapName[5]));
|
mysnprintf (checkstring, countof(checkstring), "%d: ", atoi(&MapName[5]));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// make sure nothing is stripped.
|
||||||
|
checkstring[0] = '\0';
|
||||||
|
}
|
||||||
thename = strstr (lookedup, checkstring);
|
thename = strstr (lookedup, checkstring);
|
||||||
if (thename == NULL)
|
if (thename == NULL || thename == lookedup)
|
||||||
{
|
{
|
||||||
thename = lookedup;
|
thename = lookedup;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5895,8 +5895,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_JumpIfHigherOrLower)
|
||||||
//
|
//
|
||||||
// A_SetRipperLevel(int level)
|
// A_SetRipperLevel(int level)
|
||||||
//
|
//
|
||||||
// Sets the ripper level/requirement of the calling actor.
|
// Sets the ripper level of the calling actor.
|
||||||
// Also sets the minimum and maximum levels to rip through.
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetRipperLevel)
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetRipperLevel)
|
||||||
{
|
{
|
||||||
|
@ -5909,26 +5908,24 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetRipperLevel)
|
||||||
//
|
//
|
||||||
// A_SetRipMin(int min)
|
// A_SetRipMin(int min)
|
||||||
//
|
//
|
||||||
// Sets the ripper level/requirement of the calling actor.
|
// Sets the minimum level a ripper must be in order to rip through this actor.
|
||||||
// Also sets the minimum and maximum levels to rip through.
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetRipMin)
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetRipMin)
|
||||||
{
|
{
|
||||||
ACTION_PARAM_START(1);
|
ACTION_PARAM_START(1);
|
||||||
ACTION_PARAM_INT(min, 1);
|
ACTION_PARAM_INT(min, 0);
|
||||||
self->RipLevelMin = min;
|
self->RipLevelMin = min;
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//
|
//
|
||||||
// A_SetRipMin(int min)
|
// A_SetRipMax(int max)
|
||||||
//
|
//
|
||||||
// Sets the ripper level/requirement of the calling actor.
|
// Sets the minimum level a ripper must be in order to rip through this actor.
|
||||||
// Also sets the minimum and maximum levels to rip through.
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetRipMax)
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetRipMax)
|
||||||
{
|
{
|
||||||
ACTION_PARAM_START(1);
|
ACTION_PARAM_START(1);
|
||||||
ACTION_PARAM_INT(max, 1);
|
ACTION_PARAM_INT(max, 0);
|
||||||
self->RipLevelMax = max;
|
self->RipLevelMax = max;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue