diff options
| author | Petr Mrázek | 2011-07-21 22:37:02 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-07-21 22:37:02 +0200 |
| commit | 131c32494a0aa57e73e6eef0c8d90f4b65de64c6 (patch) | |
| tree | 0dc79b7734dcf3f6474f750806ccdf69e4f321e8 /plugins/colonies.cpp | |
| parent | 26dfa7ab398c272f0d0b24a618a62db27621c4c4 (diff) | |
| download | dfhack-131c32494a0aa57e73e6eef0c8d90f4b65de64c6.tar.gz dfhack-131c32494a0aa57e73e6eef0c8d90f4b65de64c6.tar.bz2 dfhack-131c32494a0aa57e73e6eef0c8d90f4b65de64c6.tar.xz | |
Added DF material structs reversed by Quietust
Diffstat (limited to 'plugins/colonies.cpp')
| -rw-r--r-- | plugins/colonies.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/colonies.cpp b/plugins/colonies.cpp index bd5bfe83..6674e64a 100644 --- a/plugins/colonies.cpp +++ b/plugins/colonies.cpp @@ -111,7 +111,7 @@ void convertColonies(DFHack::SpawnPoints *points, DFHack::Materials *Materials) { int bee_idx = -1; for (size_t i = 0; i < Materials->raceEx.size(); i++) - if (strcmp(Materials->raceEx[i].rawname, "HONEY_BEE") == 0) + if (Materials->raceEx[i].id == "HONEY_BEE") { bee_idx = i; break; @@ -152,8 +152,8 @@ void showColonies(Core *c, DFHack::SpawnPoints *points, { numColonies++; string race="(no race)"; - if (Materials->raceEx[sp.race].rawname[0]) - race = Materials->raceEx[sp.race].rawname; + if(sp.race != -1) + race = Materials->raceEx[sp.race].id; c->con.print("Spawn point %u: %s at %d:%d:%d\n", i, race.c_str(), sp.x, sp.y, sp.z); |
