Changeset - r15481:740ee3317277
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2010-07-14 12:01:40
terkhen@openttd.org
(svn r20140) -Fix: Initialize the state of OnKeyPress at the world generation window (Zuu).
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/genworld_gui.cpp
Show inline comments
 
@@ -685,13 +685,13 @@ struct GenerateLandscapeWindow : public 
 
	{
 
		this->HandleEditBox(GLAND_RANDOM_EDITBOX);
 
	}
 

	
 
	virtual EventState OnKeyPress(uint16 key, uint16 keycode)
 
	{
 
		EventState state;
 
		EventState state = ES_NOT_HANDLED;
 
		this->HandleEditBoxKey(GLAND_RANDOM_EDITBOX, key, keycode, state);
 
		/* the seed is unsigned, therefore atoi cannot be used.
 
		 * As UINT32_MAX is a 'magic' value (use random seed) it
 
		 * should not be possible to be entered into the input
 
		 * field; the generate seed button can be used instead. */
 
		_settings_newgame.game_creation.generation_seed = minu(strtoul(this->edit_str_buf, NULL, 10), UINT32_MAX - 1);
0 comments (0 inline, 0 general)