Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 8970157db614ef79e9afceea1529bfe7 > files > 2

magicmaze-1.0.2-6.fc16.src.rpm

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;
 }