From c8b0d1e56f27c3141895d28b2fc768afffe7bb2d Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 21 Feb 2010 20:40:07 +0100 Subject: Made tick counter and framerate limiter work during login sequence Much code was moved from main() to the new Client::exec(). This new event loop now integrates with the Game class, so that the tick counter and framerate limiter apply universally. The Client class is also responsible for some things that used to be global variables. Mantis-issue: ... --- src/being.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index c49834f1..33194e0e 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -22,9 +22,9 @@ #include "being.h" #include "animatedsprite.h" +#include "client.h" #include "configuration.h" #include "effectmanager.h" -#include "game.h" #include "graphics.h" #include "localplayer.h" #include "log.h" @@ -62,7 +62,6 @@ static const int DEFAULT_BEING_WIDTH = 32; static const int DEFAULT_BEING_HEIGHT = 32; -extern const int MILLISECONDS_IN_A_TICK; int Being::mNumberOfHairstyles = 1; -- cgit v1.2.3-70-g09d2