mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- ScriptedMarine already exists as a name so most literal occurences in the source could be replaced with more efficient direct use of the name.
This commit is contained in:
parent
7ceb70bcc1
commit
1794774f22
1 changed files with 4 additions and 4 deletions
|
@ -9852,7 +9852,7 @@ scriptwait:
|
|||
if (STACK(2) != 0)
|
||||
{
|
||||
AActor *marine;
|
||||
NActorIterator iterator("ScriptedMarine", STACK(2));
|
||||
NActorIterator iterator(NAME_ScriptedMarine, STACK(2));
|
||||
|
||||
while ((marine = iterator.Next()) != NULL)
|
||||
{
|
||||
|
@ -9861,7 +9861,7 @@ scriptwait:
|
|||
}
|
||||
else
|
||||
{
|
||||
if (activator != nullptr && activator->IsKindOf (PClass::FindClass("ScriptedMarine")))
|
||||
if (activator != nullptr && activator->IsKindOf (NAME_ScriptedMarine)))
|
||||
{
|
||||
SetMarineWeapon(activator, STACK(1));
|
||||
}
|
||||
|
@ -9878,7 +9878,7 @@ scriptwait:
|
|||
if (STACK(2) != 0)
|
||||
{
|
||||
AActor *marine;
|
||||
NActorIterator iterator("ScriptedMarine", STACK(2));
|
||||
NActorIterator iterator(NAME_ScriptedMarine, STACK(2));
|
||||
|
||||
while ((marine = iterator.Next()) != NULL)
|
||||
{
|
||||
|
@ -9887,7 +9887,7 @@ scriptwait:
|
|||
}
|
||||
else
|
||||
{
|
||||
if (activator != nullptr && activator->IsKindOf("ScriptedMarine"))
|
||||
if (activator != nullptr && activator->IsKindOf(NAME_ScriptedMarine))
|
||||
{
|
||||
SetMarineSprite(activator, type);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue