mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 19:43:06 +01:00
Use RCT12PeepThoughtItemNone for importers
This commit is contained in:
@@ -2846,7 +2846,10 @@ namespace RCT1
|
||||
auto srcThought = &src->thoughts[i];
|
||||
auto dstThought = &dst->Thoughts[i];
|
||||
dstThought->type = static_cast<PeepThoughtType>(srcThought->type);
|
||||
dstThought->item = srcThought->item;
|
||||
if (srcThought->item == RCT12PeepThoughtItemNone)
|
||||
dstThought->item = PeepThoughtItemNone;
|
||||
else
|
||||
dstThought->item = srcThought->item;
|
||||
dstThought->freshness = srcThought->freshness;
|
||||
dstThought->fresh_timeout = srcThought->fresh_timeout;
|
||||
}
|
||||
|
||||
@@ -1721,7 +1721,7 @@ template<> void S6Importer::ImportEntity<Guest>(const RCT12SpriteBase& baseSrc)
|
||||
auto srcThought = &src->thoughts[i];
|
||||
auto dstThought = &dst->Thoughts[i];
|
||||
dstThought->type = static_cast<PeepThoughtType>(srcThought->type);
|
||||
if (srcThought->item == 0xFF)
|
||||
if (srcThought->item == RCT12PeepThoughtItemNone)
|
||||
dstThought->item = PeepThoughtItemNone;
|
||||
else
|
||||
dstThought->item = srcThought->item;
|
||||
|
||||
Reference in New Issue
Block a user