Add new landscape flag to enable drawing rocks covered by snow

This commit is contained in:
Jonathan G Rennison
2022-12-12 23:00:49 +00:00
parent 41fb98db09
commit 12b20376b3
8 changed files with 50 additions and 10 deletions

View File

@@ -5183,6 +5183,15 @@ static ChangeInfoResult NewLandscapeChangeInfo(uint id, int numinfo, int prop, c
break;
}
case A0RPI_NEWLANDSCAPE_ENABLE_DRAW_SNOWY_ROCKS: {
if (MappedPropertyLengthMismatch(buf, 1, mapping_entry)) break;
bool enabled = (buf->ReadByte() != 0 ? 1 : 0);
if (id == NLA3ID_CUSTOM_ROCKS) {
SB(_cur.grffile->new_landscape_ctrl_flags, NLCF_ROCKS_DRAW_SNOWY_ENABLED, 1, enabled);
}
break;
}
default:
ret = HandleAction0PropertyDefault(buf, prop);
break;