- Treballant en gamestate_prefase
This commit is contained in:
@@ -45,9 +45,8 @@ namespace gamestate
|
||||
|
||||
void drawPic(std::string filename)
|
||||
{
|
||||
draw::surface *pic = draw::loadSurface(filename);
|
||||
draw::surface *pic = draw::loadSurface(filename, true);
|
||||
draw::setSource(pic);
|
||||
draw::loadPalette(filename);
|
||||
draw::draw(0, 0, 320, 200, 0, 0);
|
||||
draw::freeSurface(pic);
|
||||
}
|
||||
@@ -90,7 +89,13 @@ namespace gamestate
|
||||
}
|
||||
}
|
||||
if (num_diapositives==0) {
|
||||
gamestate::menu::init();
|
||||
const int fase = game::getConfig("fase");
|
||||
if ( fase == -1 || fase == 30) {
|
||||
gamestate::menu::init();
|
||||
} else {
|
||||
gamestate::prefase::init();
|
||||
}
|
||||
|
||||
free(sfpointer);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user