summaryrefslogtreecommitdiff
path: root/GUI.cpp
diff options
context:
space:
mode:
authorJapa Illo2012-03-23 23:07:00 +0100
committerJapa Illo2012-03-23 23:07:00 +0100
commit9e7bff5c321b3da4cf73546ede00095351ee1b43 (patch)
treec625cd10bb01ed89522ef57c62f5dbadcc69bee8 /GUI.cpp
parentf7a9e36fd2364f2dbbb204e05e40279fe671b107 (diff)
downloadstonesense-9e7bff5c321b3da4cf73546ede00095351ee1b43.tar.gz
stonesense-9e7bff5c321b3da4cf73546ede00095351ee1b43.tar.bz2
stonesense-9e7bff5c321b3da4cf73546ede00095351ee1b43.tar.xz
Various fixes.
Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
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 83fd333..22e31c4 100644
--- a/GUI.cpp
+++ b/GUI.cpp
@@ -478,7 +478,7 @@ void drawDebugCursorAndInfo(WorldSegment * segment)
draw_textf_border(font, al_map_rgb(255,255,255), 2, (i++*al_get_font_line_height(font)), 0,
"%s - %s%s%s%s%s",
mat.getToken().c_str(),
- ENUM_KEY_STR(item_type, Actual_building->contained_items[index]->item->getType()),
+ ENUM_KEY_STR(item_type, Actual_building->contained_items[index]->item->getType()).c_str(),
(Actual_building->contained_items[index]->item->getSubtype()>=0)?"/":"",
(Actual_building->contained_items[index]->item->getSubtype()>=0)?get_item_subtype(Actual_building->contained_items[index]->item->getType(),Actual_building->contained_items[index]->item->getSubtype()):"",
Actual_building->contained_items[index]->item->getStackSize()>1?stacknum:"",
@@ -504,7 +504,7 @@ void drawDebugCursorAndInfo(WorldSegment * segment)
if(b->inv->item[item_type_idex].empty())
continue;
draw_textf_border(font, al_map_rgb(255,255,255), 2, (i++*al_get_font_line_height(font)), 0,
- "%s:", ENUM_KEY_STR(item_type, (item_type::item_type)item_type_idex));
+ "%s:", ENUM_KEY_STR(item_type, (item_type::item_type)item_type_idex).c_str());
for(int ind = 0; ind < b->inv->item[item_type_idex].size(); ind++)
{
if(b->inv->item[item_type_idex][ind].empty())
@@ -631,7 +631,7 @@ void drawDebugCursorAndInfo(WorldSegment * segment)
const char* subTypeName = lookupBuildingSubtype(b->building.info.type, b->building.info.subtype);
draw_textf_border(font, al_map_rgb(255,255,255), 2, (i++*al_get_font_line_height(font)), 0,
"Building: game_type = %s(%i) game_subtype = %s(%i) Material: %s%s%s (%d,%d)",
- ENUM_KEY_STR(building_type, (building_type::building_type)b->building.info.type),
+ ENUM_KEY_STR(building_type, (building_type::building_type)b->building.info.type).c_str(),
b->building.info.type,
subTypeName,
b->building.info.subtype,