Unknown 3 was update order.

develop
Petr Mrázek 2011-05-15 02:21:24 +02:00
parent d9e9fae7a0
commit 4d3f4c2c23
2 changed files with 4 additions and 4 deletions

@ -44,11 +44,11 @@ namespace DFHack
uint32_t is_burning; // 0x50: yes, just one flag uint32_t is_burning; // 0x50: yes, just one flag
uint32_t hitpoints; // 0x54 uint32_t hitpoints; // 0x54
/** /**
* 0x58 - maybe related to the order in which plants are updated * 0x58 - the updates are staggered into 9? groups. this seems to be what differentiates the plants.
* the updates are staggered into 8 groups?
*/ */
uint32_t unknown_3; uint32_t update_order;
// a vector is here // a vector is here
// some more temperature stuff after that
}; };
/** /**
* Plant object read from the game * Plant object read from the game

@ -50,7 +50,7 @@ void print_tree( DFHack::Context * DF , DFHack::dfh_plant & tree)
printf("temperature 2: %d\n", tdata.temperature_2); printf("temperature 2: %d\n", tdata.temperature_2);
printf("On fire: %d\n", tdata.is_burning); printf("On fire: %d\n", tdata.is_burning);
printf("hitpoints: 0x%08x\n", tdata.hitpoints); 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); printf("Address: 0x%x\n", tree.address);
hexdump(DF,tree.address,13*16); hexdump(DF,tree.address,13*16);
} }