135 _random_seeds[0][1] = rnd2; |
135 _random_seeds[0][1] = rnd2; |
136 |
136 |
137 SwitchMode(SM_NEWGAME); |
137 SwitchMode(SM_NEWGAME); |
138 } |
138 } |
139 |
139 |
140 int32 CmdStartScenario(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
140 void StartScenarioEditor(uint32 rnd1, uint32 rnd2) |
141 { |
141 { |
142 if (!(flags & DC_EXEC)) |
142 _random_seeds[0][0] = rnd1; |
143 return 0; |
143 _random_seeds[0][1] = rnd2; |
144 |
|
145 // this forces stuff into test mode. |
|
146 _docommand_recursive = 0; |
|
147 |
|
148 _random_seeds[0][0] = p1; |
|
149 _random_seeds[0][1] = p2; |
|
150 |
144 |
151 SwitchMode(SM_START_SCENARIO); |
145 SwitchMode(SM_START_SCENARIO); |
152 return 0; |
146 } |
153 } |
|
154 |
|
155 |
147 |
156 static const Widget _ask_abandon_game_widgets[] = { |
148 static const Widget _ask_abandon_game_widgets[] = { |
157 { WWT_TEXTBTN, RESIZE_NONE, 4, 0, 10, 0, 13, STR_00C5, STR_NULL}, |
149 { WWT_TEXTBTN, RESIZE_NONE, 4, 0, 10, 0, 13, STR_00C5, STR_NULL}, |
158 { WWT_CAPTION, RESIZE_NONE, 4, 11, 179, 0, 13, STR_00C7_QUIT, STR_NULL}, |
150 { WWT_CAPTION, RESIZE_NONE, 4, 11, 179, 0, 13, STR_00C7_QUIT, STR_NULL}, |
159 { WWT_IMGBTN, RESIZE_NONE, 4, 0, 179, 14, 91, 0x0, STR_NULL}, |
151 { WWT_IMGBTN, RESIZE_NONE, 4, 0, 179, 14, 91, 0x0, STR_NULL}, |