Procházet zdrojové kódy

The client application no longer needs to call Video::Clea().

legacy
Sam Hocevar sam před 15 roky
rodič
revize
0297a2b195
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. +4
    -2
      src/ticker.cpp

+ 4
- 2
src/ticker.cpp Zobrazit soubor

@@ -30,7 +30,7 @@ public:
TickerData() : TickerData() :
todolist(0), autolist(0), todolist(0), autolist(0),
nentities(0), nentities(0),
frame(0), deltams(0), bias(0),
frame(0), deltams(0), bias(0), fps(0),
quit(0), quitframe(0), quitdelay(20), panic(0) quit(0), quitframe(0), quitdelay(20), panic(0)
{ {
for (int i = 0; i < Entity::ALLGROUP_END; i++) for (int i = 0; i < Entity::ALLGROUP_END; i++)
@@ -63,7 +63,7 @@ private:
/* Fixed framerate management */ /* Fixed framerate management */
int frame; int frame;
Timer timer; Timer timer;
float deltams, bias;
float deltams, bias, fps;


/* Shutdown management */ /* Shutdown management */
int quit, quitframe, quitdelay, panic; int quit, quitframe, quitdelay, panic;
@@ -267,6 +267,8 @@ void Ticker::TickDraw()
{ {
Profiler::Start(Profiler::STAT_TICK_DRAW); Profiler::Start(Profiler::STAT_TICK_DRAW);


Video::Clear();

Scene::GetDefault(); Scene::GetDefault();


/* Tick objects for the draw loop */ /* Tick objects for the draw loop */


Načítá se…
Zrušit
Uložit