chiark / gitweb /
Make sure the right element of the game-type dropdown starts off
authorSimon Tatham <anakin@pobox.com>
Sun, 31 Mar 2013 11:50:46 +0000 (11:50 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 31 Mar 2013 11:50:46 +0000 (11:50 +0000)
commit52d4dae0a9a997b01d6410b42d1e1c503f039bc1
tree19cde221ed115cbe8308d873c540bf56e727d1ed
parentbb14689b4a555b4b176192d2c3cd02a4c354a37f
Make sure the right element of the game-type dropdown starts off
selected. Previously we were leaving the first element on the list
selected, which is _usually_ right, but not right for Slant.

In the process of doing this, I've also reorganised to fix a crash
which shows up with non-configurable games (admittedly currently only
Nullgame :-) when we still try to call js_select_preset in spite of
not having any preset options to select.

[originally from svn r9794]
emcc.c