mirror of https://github.com/OpenTTD/OpenTTD
Compare commits
4 Commits
5d03c9ca7d
...
c934f24719
Author | SHA1 | Date |
---|---|---|
|
c934f24719 | |
|
c69fc76395 | |
|
bac9bf93bc | |
|
abdea49d24 |
|
@ -184,7 +184,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Bridge offset
|
* Bridge offset
|
||||||
*/
|
*/
|
||||||
SpriteID bridge_offset;
|
uint8_t bridge_offset;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Original railtype number to use when drawing non-newgrf railtypes, or when drawing stations.
|
* Original railtype number to use when drawing non-newgrf railtypes, or when drawing stations.
|
||||||
|
|
|
@ -50,8 +50,11 @@ void VideoDriver_Null::MainLoop()
|
||||||
{
|
{
|
||||||
uint i;
|
uint i;
|
||||||
|
|
||||||
for (i = 0; i < this->ticks; i++) {
|
for (i = 0; i < this->ticks && ! _exit_game; i++) {
|
||||||
::GameLoop();
|
{
|
||||||
|
std::lock_guard<std::mutex> lock(this->game_state_mutex);
|
||||||
|
::GameLoop();
|
||||||
|
}
|
||||||
::InputLoop();
|
::InputLoop();
|
||||||
::UpdateWindows();
|
::UpdateWindows();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue