summaryrefslogtreecommitdiff
path: root/src/genworld_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-14 22:50:21 +0000
committerfrosch <frosch@openttd.org>2012-11-14 22:50:21 +0000
commit6653ac6b362cf88a6b77a4e8dd3c6926885c6b5f (patch)
tree390b2ccf0ad8f69cd6682320ebdbcbdda0ae31ce /src/genworld_gui.cpp
parentf6d4200f86e93828a4a58a957d6ae7d9d5497a86 (diff)
downloadopenttd-6653ac6b362cf88a6b77a4e8dd3c6926885c6b5f.tar.xz
(svn r24739) -Codechange: Simplify some code by using Textbuf::Assign.
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r--src/genworld_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index 1e6914696..a9fb68a05 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -547,8 +547,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
case WID_GL_RANDOM_BUTTON: // Random seed
_settings_newgame.game_creation.generation_seed = InteractiveRandom();
- snprintf(this->edit_str_buf, this->edit_str_size, "%u", _settings_newgame.game_creation.generation_seed);
- this->text.UpdateSize();
+ this->text.Print("%u", _settings_newgame.game_creation.generation_seed);
this->SetDirty();
break;