mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-12-26 02:40:37 +01:00
Reading timers.
This commit is contained in:
parent
2319d5f0ed
commit
18598bba3c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user