diff -up magicmaze/src/msg.cpp~ magicmaze/src/msg.cpp --- magicmaze/src/msg.cpp~ 2008-02-05 20:06:21.000000000 +0100 +++ magicmaze/src/msg.cpp 2008-02-05 20:06:21.000000000 +0100 @@ -6,11 +6,10 @@ #include <gstream.h> #include <gmanip.h> -char const * const msgs[4] = +char const * const msgs[3] = {"", "Move the free piece with LEFT/RIGHT. Rotate the piece with UP/DOWN. Press enter when done.", - "Use the cursor keys to move your guy to your treasure", - "This game is sponsored by Grolsch, M&Ms and Coca Cola"}; + "Use the cursor keys to move your guy to your treasure"}; void Messager::activate () { @@ -20,6 +19,9 @@ void Messager::activate () void Messager::setMessage (int index, int time) { + if (index >= 3) + return; + current_message = index; message_timer = time; }