mirror of https://github.com/OpenTTD/OpenTTD
Compare commits
4 Commits
30909ed83d
...
31ce55c0c6
Author | SHA1 | Date |
---|---|---|
|
31ce55c0c6 | |
|
03672ed8eb | |
|
bac9bf93bc | |
|
abdea49d24 |
|
@ -84,7 +84,7 @@ struct EnginePreviewWindow : Window {
|
|||
|
||||
/* Get size of engine sprite, on loan from depot_gui.cpp */
|
||||
EngineID engine = static_cast<EngineID>(this->window_number);
|
||||
EngineImageType image_type = EIT_PURCHASE;
|
||||
EngineImageType image_type = EIT_PREVIEW;
|
||||
uint x, y;
|
||||
int x_offs, y_offs;
|
||||
|
||||
|
|
|
@ -50,8 +50,11 @@ void VideoDriver_Null::MainLoop()
|
|||
{
|
||||
uint i;
|
||||
|
||||
for (i = 0; i < this->ticks; i++) {
|
||||
::GameLoop();
|
||||
for (i = 0; i < this->ticks && ! _exit_game; i++) {
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(this->game_state_mutex);
|
||||
::GameLoop();
|
||||
}
|
||||
::InputLoop();
|
||||
::UpdateWindows();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue