Added APROP_WaterDepth.

This commit is contained in:
inkoalawetrust 2023-01-05 03:27:48 +02:00 committed by Rachael Alexanderson
parent aed72f58f3
commit 6f4a29b5e5

View file

@ -4047,6 +4047,7 @@ enum
APROP_DamageType = 46, APROP_DamageType = 46,
APROP_SoundClass = 47, APROP_SoundClass = 47,
APROP_FriendlySeeBlocks = 48, APROP_FriendlySeeBlocks = 48,
APROP_WaterDepth = 49,
}; };
// These are needed for ACS's APROP_RenderStyle // These are needed for ACS's APROP_RenderStyle
@ -4422,6 +4423,7 @@ int DLevelScript::GetActorProperty (int tid, int property)
case APROP_DamageType: return GlobalACSStrings.AddString(actor->DamageType.GetChars()); case APROP_DamageType: return GlobalACSStrings.AddString(actor->DamageType.GetChars());
case APROP_SoundClass: return GlobalACSStrings.AddString(S_GetSoundClass(actor)); case APROP_SoundClass: return GlobalACSStrings.AddString(S_GetSoundClass(actor));
case APROP_FriendlySeeBlocks: return actor->friendlyseeblocks; case APROP_FriendlySeeBlocks: return actor->friendlyseeblocks;
case APROP_WaterDepth: return DoubleToACS(actor->waterdepth);
default: return 0; default: return 0;
} }
@ -4472,6 +4474,7 @@ int DLevelScript::CheckActorProperty (int tid, int property, int value)
case APROP_MaxDropOffHeight: case APROP_MaxDropOffHeight:
case APROP_StencilColor: case APROP_StencilColor:
case APROP_FriendlySeeBlocks: case APROP_FriendlySeeBlocks:
case APROP_WaterDepth:
return (GetActorProperty(tid, property) == value); return (GetActorProperty(tid, property) == value);
// Boolean values need to compare to a binary version of value // Boolean values need to compare to a binary version of value