From 0a6563fcc2f49857c581d9def24407a3a4ef526c Mon Sep 17 00:00:00 2001 From: andyq Date: Tue, 21 Jan 2003 20:37:00 +0000 Subject: Clean up of code - fixed memory leaks (most of them) and added new custom config menu --- (limited to 'noncore/games/sfcave-sdl/help.cpp') diff --git a/noncore/games/sfcave-sdl/help.cpp b/noncore/games/sfcave-sdl/help.cpp index 91c62da..f1728f6 100644 --- a/noncore/games/sfcave-sdl/help.cpp +++ b/noncore/games/sfcave-sdl/help.cpp @@ -35,7 +35,7 @@ void Help :: handleKeys( SDL_KeyboardEvent &key ) textSpeed = 0; else textSpeed = 1; } - + } else if ( key.type == SDL_KEYUP ) { @@ -48,7 +48,7 @@ void Help :: init() startPos = 320; currLine = 0; textSpeed = 1; - + // Create our coloured font FontHandler :: changeColor( FONT_HELP_FONT, 0, 0, 255 ); } @@ -57,7 +57,6 @@ void Help :: draw( SDL_Surface *screen ) { stars->draw( screen ); - list::iterator it = textList.begin(); // Move to start of text @@ -75,13 +74,13 @@ void Help :: draw( SDL_Surface *screen ) pos += FontHandler::FontHeight( FONT_COLOURED_TEXT ); it ++; } - + } void Help :: update() { stars->move(); - + startPos -= textSpeed; if ( startPos <= -FontHandler::FontHeight( FONT_COLOURED_TEXT ) ) { -- cgit v0.9.0.2