added WITHOUT_ODE logic to ss/SSMain.cc
git-svn-id: svn://anubis/dwscr/trunk@88 5bef9df8-b654-44bb-925b-0ff18baa8f8c
This commit is contained in:
parent
c2d694aa73
commit
6b8e14f8b8
@ -14,8 +14,10 @@
|
||||
#include <SDL/SDL.h>
|
||||
#include "SSMain.h"
|
||||
#include "PlainSpin.h"
|
||||
#ifndef WITHOUT_ODE
|
||||
#include "TumblingLogos.h"
|
||||
#include "Towers.h"
|
||||
#endif
|
||||
|
||||
/* switch to the next screensaver mode after this many milliseconds */
|
||||
#define SSMODE_TIMEOUT_MSEC (1000*45)
|
||||
@ -121,7 +123,11 @@ RET:
|
||||
SSMode * SSMain::startMode()
|
||||
{
|
||||
static int mode = 0;
|
||||
#ifndef WITHOUT_ODE
|
||||
const int numModes = 3;
|
||||
#else
|
||||
const int numModes = 1;
|
||||
#endif
|
||||
|
||||
mode++;
|
||||
if (mode >= numModes)
|
||||
@ -131,10 +137,12 @@ SSMode * SSMain::startMode()
|
||||
{
|
||||
case 0:
|
||||
return new PlainSpin(this);
|
||||
#ifndef WITHOUT_ODE
|
||||
case 1:
|
||||
return new Towers(this);
|
||||
default:
|
||||
return new TumblingLogos(this);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user