From 32bede9b4643a67100a8a08995f48168fa5e5d08 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 3 Jun 2004 11:19:24 +0000 Subject: [PATCH] fixed warnings in leveleditor SVN-Revision: 1395 --- src/leveleditor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index 9d1fb61a1..b4893557a 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -613,7 +613,7 @@ void update_level_settings_menu() level_settings_menu->get_item_by_id(MNID_TIME).change_input(str); sprintf(str,"%2.0f",le_level->get_sector("main")->gravity); level_settings_menu->get_item_by_id(MNID_GRAVITY).change_input(str); - sprintf(str,"%d",le_level->get_sector("main")->background->get_speed()); + sprintf(str,"%2.2f", le_level->get_sector("main")->background->get_speed()); level_settings_menu->get_item_by_id(MNID_BGSPEED).change_input(str); sprintf(str,"%d",le_level->get_sector("main")->background->get_gradient_top().red); level_settings_menu->get_item_by_id(MNID_TopRed).change_input(str); @@ -689,7 +689,8 @@ void le_unload_level() if(le_level_changed) { char str[1024]; - sprintf(str,"Save changes to level %d of %s?",le_level,le_level_subset->name.c_str()); + // TODO get level number + sprintf(str,"Save changes to level %d of %s?", 0/*le_level*/,le_level_subset->name.c_str()); Surface* surf = new Surface(le_level->get_sector("main")->background->get_image(), false); if(confirm_dialog(surf, str)) { -- 2.11.0