spraycan: actually explain SpawnDecal arg0 thing
This commit is contained in:
parent
c453013abf
commit
e82101d9cb
@ -405,9 +405,11 @@ class SnekTechSprayerDecalSpawner : Decal
|
||||
}
|
||||
}
|
||||
|
||||
// pass the decal name as a map editor type of argument
|
||||
args[0] = -int(name(actualDecalName));
|
||||
// spawn the decal
|
||||
// SpawnDecal checks arg0 for the decal ID/name.
|
||||
// gzdoom passes string arguments as negated string table indices, so
|
||||
// we need to cast the decal name to a Name (implicitly adding it to
|
||||
// the string table), then to an int (to get the index).
|
||||
args[0] = -int(Name(actualDecalName));
|
||||
Super.SpawnDecal();
|
||||
|
||||
// then find every decal that we spawned
|
||||
|
Loading…
Reference in New Issue
Block a user