From 4d3f4c2c230cd5518135ff2a02a31aa3265590ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 15 May 2011 02:21:24 +0200 Subject: [PATCH] Unknown 3 was update order. --- library/include/dfhack/modules/Vegetation.h | 6 +++--- tools/examples/treedump.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/include/dfhack/modules/Vegetation.h b/library/include/dfhack/modules/Vegetation.h index e874830d8..0e8b121ac 100644 --- a/library/include/dfhack/modules/Vegetation.h +++ b/library/include/dfhack/modules/Vegetation.h @@ -44,11 +44,11 @@ namespace DFHack uint32_t is_burning; // 0x50: yes, just one flag uint32_t hitpoints; // 0x54 /** - * 0x58 - maybe related to the order in which plants are updated - * the updates are staggered into 8 groups? + * 0x58 - the updates are staggered into 9? groups. this seems to be what differentiates the plants. */ - uint32_t unknown_3; + uint32_t update_order; // a vector is here + // some more temperature stuff after that }; /** * Plant object read from the game diff --git a/tools/examples/treedump.cpp b/tools/examples/treedump.cpp index af6bf9b96..b599b6656 100644 --- a/tools/examples/treedump.cpp +++ b/tools/examples/treedump.cpp @@ -50,7 +50,7 @@ void print_tree( DFHack::Context * DF , DFHack::dfh_plant & tree) printf("temperature 2: %d\n", tdata.temperature_2); printf("On fire: %d\n", tdata.is_burning); printf("hitpoints: 0x%08x\n", tdata.hitpoints); - printf("unknown_3: 0x%08x\n", tdata.unknown_3); + printf("update order: %d\n", tdata.update_order); printf("Address: 0x%x\n", tree.address); hexdump(DF,tree.address,13*16); }