1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Add comments to explain the numbers

This commit is contained in:
Gymnasiast
2022-01-23 15:40:37 +01:00
parent b1637e1199
commit 9228cde8cd

View File

@@ -193,8 +193,10 @@ std::vector<ObjectEntryDescriptor> SceneryGroupObject::ReadJsonEntries(IReadObje
for (const auto& jEntry : jEntries)
{
auto entryName = Json::GetString(jEntry);
// Example entry: "$DAT:09F55406|00STBEN "
if (String::StartsWith(entryName, "$DAT:"))
{
// 5 for $DAT:, 8 for the checksum, 1 for the vertical bar, 8 for the .DAT name.
if (entryName.length() != 5 + 8 + 1 + 8)
{
std::string errorMessage = "Malformed DAT entry in scenery group: " + entryName;