summaryrefslogtreecommitdiff
path: root/GUI.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2011-07-22 00:45:54 +0000
committerPetr Mrázek2011-07-22 00:45:54 +0000
commitbf89e3ad6b98442dca909e327b80c5e292db6092 (patch)
tree27f28ac93518f26fd099bf07340e9d7fe9f11f1c /GUI.cpp
parent650c5593bfd90afc93720b06fe74ee4ec7abf73e (diff)
downloadstonesense-bf89e3ad6b98442dca909e327b80c5e292db6092.tar.gz
stonesense-bf89e3ad6b98442dca909e327b80c5e292db6092.tar.bz2
stonesense-bf89e3ad6b98442dca909e327b80c5e292db6092.tar.xz
Update stonesense for current dfhack, make sure it's buildable as a plugin.
Diffstat (limited to 'GUI.cpp')
-rw-r--r--GUI.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/GUI.cpp b/GUI.cpp
index 82ddd26..c018710 100644
--- a/GUI.cpp
+++ b/GUI.cpp
@@ -465,7 +465,7 @@ void drawDebugCursorAndInfo(){
if(!config.skipCreatureTypes)
draw_textf_border(font, al_map_rgb(255,255,255), 2, al_get_bitmap_height(al_get_target_bitmap())-20-(i--*al_get_font_line_height(font)), 0,
"Creature:%s(%i) Job:%s",
- contentLoader.Mats->race.at(b->creature->race).id, b->creature->race,
+ contentLoader.Mats->race.at(b->creature->race).id.c_str(), b->creature->race,
contentLoader.professionStrings.at(b->creature->profession).c_str());
char strCreature[150] = {0};
@@ -495,8 +495,8 @@ void drawDebugCursorAndInfo(){
contentLoader.Mats->color[cr_color].red,
contentLoader.Mats->color[cr_color].green,
contentLoader.Mats->color[cr_color].blue), xx, yy, 0,
- "%s ", contentLoader.Mats->raceEx[b->creature->race].castes[b->creature->caste].ColorModifier[j].part);
- xx += get_textf_width(font, "%s ", contentLoader.Mats->raceEx[b->creature->race].castes[b->creature->caste].ColorModifier[j].part);
+ "%s ", contentLoader.Mats->raceEx[b->creature->race].castes[b->creature->caste].ColorModifier[j].part.c_str());
+ xx += get_textf_width(font, "%s ", contentLoader.Mats->raceEx[b->creature->race].castes[b->creature->caste].ColorModifier[j].part.c_str());
}
}
}