Reading timers.

This commit is contained in:
Miroslav Bendík 2012-08-24 14:48:55 +02:00
parent 2319d5f0ed
commit 18598bba3c
2 changed files with 9 additions and 1 deletions

@ -309,6 +309,14 @@ void TileGenerator::renderMap()
m_nameMap[nodeId] = string(data + dataOffset, nameLen); m_nameMap[nodeId] = string(data + dataOffset, nameLen);
} }
} }
// Node timers
if (version >= 25) {
dataOffset++;
int numTimers = readU16(data + dataOffset);
dataOffset += 2;
dataOffset += numTimers * 10;
}
} }
} }
} }

@ -18,7 +18,7 @@
#include <string> #include <string>
struct Color { 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) {}; Color(uint8_t r, uint8_t g, uint8_t b): r(r), g(g), b(b) {};
uint8_t r; uint8_t r;
uint8_t g; uint8_t g;