mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- allow setting the ice translation with Thing_SetTranslation.
This requires passing a magic value because this translation is defined differently than all the rest which can be used in ACS.
This commit is contained in:
parent
1ad02a6ce8
commit
106886a9bb
1 changed files with 9 additions and 0 deletions
|
@ -1600,6 +1600,11 @@ FUNC(LS_Thing_Move) // [BC]
|
|||
return P_Thing_Move (arg0, it, arg1, arg2 ? false : true);
|
||||
}
|
||||
|
||||
enum
|
||||
{
|
||||
TRANSLATION_ICE = 0x100007
|
||||
};
|
||||
|
||||
FUNC(LS_Thing_SetTranslation)
|
||||
// Thing_SetTranslation (tid, range)
|
||||
{
|
||||
|
@ -1616,6 +1621,10 @@ FUNC(LS_Thing_SetTranslation)
|
|||
{
|
||||
range = TRANSLATION(TRANSLATION_LevelScripted, (arg1-1));
|
||||
}
|
||||
else if (arg1 == TRANSLATION_ICE)
|
||||
{
|
||||
range = TRANSLATION(TRANSLATION_Standard, 7);
|
||||
}
|
||||
else
|
||||
{
|
||||
range = 0;
|
||||
|
|
Loading…
Reference in a new issue