- remember custom tile type.

This commit is contained in:
Christoph Oelckers 2020-05-30 11:46:49 +02:00
parent 58c62e071c
commit 00f1043047

View file

@ -415,6 +415,7 @@ FGameTexture* BuildTiles::ValidateCustomTile(int tilenum, ReplacementType type)
if (reptype == type) return tile; // already created if (reptype == type) return tile; // already created
if (reptype > ReplacementType::Art) return nullptr; // different custom type - cannot replace again. if (reptype > ReplacementType::Art) return nullptr; // different custom type - cannot replace again.
FTexture* replacement = nullptr; FTexture* replacement = nullptr;
td.replacement = type;
if (type == ReplacementType::Writable) if (type == ReplacementType::Writable)
{ {
// Creates an empty writable tile. // Creates an empty writable tile.