Skip to content

Commit 3306135

Browse files
committed
fix: restore missing shadow parameters
1 parent 98d8391 commit 3306135

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

GeneralsMD/Code/GameEngine/Source/Common/Thing/ThingTemplate.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,12 @@ const FieldParse ThingTemplate::s_objectFieldParseTable[] =
228228
{ "GeometryHeight", GeometryInfo::parseGeometryHeight, nullptr, offsetof( ThingTemplate, m_geometryInfo ) },
229229
{ "GeometryIsSmall", GeometryInfo::parseGeometryIsSmall, nullptr, offsetof( ThingTemplate, m_geometryInfo ) },
230230
{ "Shadow", INI::parseBitString8, TheShadowNames, offsetof( ThingTemplate, m_shadowType ) },
231-
{ "ShadowDynamicLengthWhenAirborne", INI::parseBool, NULL, offsetof( ThingTemplate, m_shadowHasDynamicLength) },
231+
{ "ShadowSizeX", INI::parseReal, nullptr, offsetof(ThingTemplate, m_shadowSizeX) },
232+
{ "ShadowSizeY", INI::parseReal, nullptr, offsetof(ThingTemplate, m_shadowSizeY) },
233+
{ "ShadowOffsetX", INI::parseReal, nullptr, offsetof(ThingTemplate, m_shadowOffsetX) },
234+
{ "ShadowOffsetY", INI::parseReal, nullptr, offsetof(ThingTemplate, m_shadowOffsetY) },
235+
{ "ShadowTexture", INI::parseAsciiString, nullptr, offsetof(ThingTemplate, m_shadowTextureName) },
236+
{ "ShadowDynamicLengthWhenAirborne", INI::parseBool, nullptr, offsetof( ThingTemplate, m_shadowHasDynamicLength) },
232237
{ "OcclusionDelay", INI::parseDurationUnsignedInt, nullptr, offsetof( ThingTemplate, m_occlusionDelay ) },
233238
{ "AddModule", ThingTemplate::parseAddModule, nullptr, 0 },
234239
{ "RemoveModule", ThingTemplate::parseRemoveModule, nullptr, 0 },

0 commit comments

Comments
 (0)