mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-08 06:06:43 +01:00
don't load map state again when reaching last page of intro
This commit is contained in:
parent
b5326270db
commit
a715d37be9
2 changed files with 3 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -15,7 +15,7 @@ $(ODIR)/%.o: $(SRCDIR)/%.c
|
||||||
$(CC) -c -o $@ $< $(CFLAGS)
|
$(CC) -c -o $@ $< $(CFLAGS)
|
||||||
|
|
||||||
$(OUTPUTDIR)/superderpy: $(OBJ)
|
$(OUTPUTDIR)/superderpy: $(OBJ)
|
||||||
gcc -o $@ $^ $(CFLAGS) $(LIBS)
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,9 @@ void Intro_Draw(struct Game *game) {
|
||||||
else if (game->intro.position<=-4*al_get_display_width(game->display)) {
|
else if (game->intro.position<=-4*al_get_display_width(game->display)) {
|
||||||
PrintConsole(game, "This was the last page.");
|
PrintConsole(game, "This was the last page.");
|
||||||
UnloadGameState(game);
|
UnloadGameState(game);
|
||||||
game->gamestate = GAMESTATE_LOADING;
|
|
||||||
game->loadstate = GAMESTATE_MAP;
|
game->loadstate = GAMESTATE_MAP;
|
||||||
|
PrintConsole(game, "Chainloading GAMESTATE_MAP...");
|
||||||
|
LoadGameState(game);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue