diff --git a/Makefile b/Makefile index 88e1d17..7f73766 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ $(ODIR)/%.o: $(SRCDIR)/%.c $(CC) -c -o $@ $< $(CFLAGS) $(OUTPUTDIR)/superderpy: $(OBJ) - gcc -o $@ $^ $(CFLAGS) $(LIBS) + $(CC) -o $@ $^ $(CFLAGS) $(LIBS) .PHONY: clean diff --git a/src/intro.c b/src/intro.c index 9a2065e..08ae63f 100644 --- a/src/intro.c +++ b/src/intro.c @@ -25,8 +25,9 @@ void Intro_Draw(struct Game *game) { else if (game->intro.position<=-4*al_get_display_width(game->display)) { PrintConsole(game, "This was the last page."); UnloadGameState(game); - game->gamestate = GAMESTATE_LOADING; game->loadstate = GAMESTATE_MAP; + PrintConsole(game, "Chainloading GAMESTATE_MAP..."); + LoadGameState(game); } } }