diff --git a/TileGenerator.cpp b/TileGenerator.cpp index d3dac73..e90d7c5 100644 --- a/TileGenerator.cpp +++ b/TileGenerator.cpp @@ -309,6 +309,14 @@ void TileGenerator::renderMap() m_nameMap[nodeId] = string(data + dataOffset, nameLen); } } + + // Node timers + if (version >= 25) { + dataOffset++; + int numTimers = readU16(data + dataOffset); + dataOffset += 2; + dataOffset += numTimers * 10; + } } } } diff --git a/TileGenerator.h b/TileGenerator.h index 5187436..447c862 100644 --- a/TileGenerator.h +++ b/TileGenerator.h @@ -18,7 +18,7 @@ #include struct Color { - Color() {}; + Color(): r(255), g(255), b(255) {}; Color(uint8_t r, uint8_t g, uint8_t b): r(r), g(g), b(b) {}; uint8_t r; uint8_t g;