- 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:
Christoph Oelckers 2015-11-29 12:30:50 +01:00
parent 1ad02a6ce8
commit 106886a9bb

View file

@ -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;