0ad/0ad-cs7793.patch

32 lines
925 B
Diff

Index: source/tools/atlas/GameInterface/GameLoop.cpp
===================================================================
--- source/tools/atlas/GameInterface/GameLoop.cpp (revision 7792)
+++ source/tools/atlas/GameInterface/GameLoop.cpp (revision 7793)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2009 Wildfire Games.
+/* Copyright (C) 2010 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -63,8 +63,7 @@
}
-static MessagePasserImpl msgPasser;
-MessagePasser* AtlasMessage::g_MessagePasser = &msgPasser;
+MessagePasser* AtlasMessage::g_MessagePasser = NULL;
static InputProcessor g_Input;
@@ -118,6 +117,10 @@
return false;
}
+ // Construct a message passer for communicating with Atlas
+ MessagePasserImpl msgPasser;
+ AtlasMessage::g_MessagePasser = &msgPasser;
+
// Pass our message handler to Atlas
Atlas_SetMessagePasser(&msgPasser);