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

View File

@ -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;
}
}
}
}

View File

@ -18,7 +18,7 @@
#include <string>
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;