From 43bbcf02fd5e4e69a9aa521fa4cd572cc8675cf3 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 11 Dec 2015 08:38:38 -0500 Subject: first areas plotted --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index b28a8da..4e45189 100644 --- a/main.cpp +++ b/main.cpp @@ -256,6 +256,7 @@ int main(/*int argc, char *argv[]*/){ std::cout << "SDL_mixer could not initialize! Error: " << Mix_GetError() << std::endl; return -1; } + Mix_AllocateChannels(8); // Run Mix_Quit when main returns atexit(Mix_CloseAudio); @@ -492,8 +493,7 @@ void mainLoop(void){ ui::handleEvents(); if(prev != currentWorld){ - prev->bgmStop(); - currentWorld->bgmPlay(); + currentWorld->bgmPlay(prev); } if(prevPrevTime + MSEC_PER_TICK <= currentTime){ -- cgit v1.2.3