]> git.jsancho.org Git - lugaru.git/commitdiff
Workaround GCC issue with mvt keys in tutorial
authorRémi Verschelde <rverschelde@gmail.com>
Mon, 23 Jan 2017 17:13:50 +0000 (18:13 +0100)
committerRémi Verschelde <rverschelde@gmail.com>
Mon, 23 Jan 2017 17:13:50 +0000 (18:13 +0100)
Fixes #64.

Source/Tutorial.cpp

index 4a034373b83ed5b1f0a52366ddf4af21f0dc1da2..374f052073fb1a101efb0017f09a6f347d1f7157 100644 (file)
@@ -566,11 +566,10 @@ void Tutorial::DrawTextInfo()
             string = "You can move the mouse to rotate the camera.";
             break;
         case 4:
-            string = std::string("Try using the ") +
-                     Input::keyToChar(Game::forwardkey) + ", " +
-                     Input::keyToChar(Game::leftkey) + ", " +
-                     Input::keyToChar(Game::backkey) + " and " +
-                     Input::keyToChar(Game::rightkey) + " keys to move around.";
+            string = std::string("Try using the ") + Input::keyToChar(Game::forwardkey);
+            string += std::string(", ") + Input::keyToChar(Game::leftkey);
+            string += std::string(", ") + Input::keyToChar(Game::backkey);
+            string += std::string(" and ") + Input::keyToChar(Game::rightkey) + " keys to move around.";
             string2 = "All movement is relative to the camera.";
             break;
         case 5: