Merge branch 'crashlog_improvements' into jgrpp
This commit is contained in:
@@ -2597,6 +2597,8 @@ bool FocusWindowById(WindowClass cls, WindowNumber number)
|
||||
*/
|
||||
void HandleKeypress(uint keycode, WChar key)
|
||||
{
|
||||
if (InEventLoopPostCrash()) return;
|
||||
|
||||
/* World generation is multithreaded and messes with companies.
|
||||
* But there is no company related window open anyway, so _current_company is not used. */
|
||||
assert(HasModalProgress() || IsLocalCompany());
|
||||
@@ -2801,6 +2803,8 @@ static void HandleKeyScrolling()
|
||||
|
||||
static void MouseLoop(MouseClick click, int mousewheel)
|
||||
{
|
||||
if (InEventLoopPostCrash()) return;
|
||||
|
||||
/* World generation is multithreaded and messes with companies.
|
||||
* But there is no company related window open anyway, so _current_company is not used. */
|
||||
assert(HasModalProgress() || IsLocalCompany());
|
||||
@@ -2892,6 +2896,8 @@ static void MouseLoop(MouseClick click, int mousewheel)
|
||||
*/
|
||||
void HandleMouseEvents()
|
||||
{
|
||||
if (InEventLoopPostCrash()) return;
|
||||
|
||||
/* World generation is multithreaded and messes with companies.
|
||||
* But there is no company related window open anyway, so _current_company is not used. */
|
||||
assert(HasModalProgress() || IsLocalCompany());
|
||||
@@ -2999,6 +3005,8 @@ static void CheckSoftLimit()
|
||||
*/
|
||||
void InputLoop()
|
||||
{
|
||||
if (InEventLoopPostCrash()) return;
|
||||
|
||||
/* World generation is multithreaded and messes with companies.
|
||||
* But there is no company related window open anyway, so _current_company is not used. */
|
||||
assert(HasModalProgress() || IsLocalCompany());
|
||||
|
Reference in New Issue
Block a user