Fixed a Segmentation Fault when mr_iceblock was kicked into a brick containing coins...
[supertux.git] / src / supertux / command_line_arguments.cpp
index 0e97b75..843f23d 100644 (file)
@@ -59,10 +59,9 @@ CommandLineArguments::print_datadir()
   // Print the datadir searchpath to stdout, one path per
   // line. Then exit. Intended for use by the supertux-editor.
   char **sp;
-  size_t sp_index;
   sp = PHYSFS_getSearchPath();
   if (sp)
-    for (sp_index = 0; sp[sp_index]; sp_index++)
+    for (size_t sp_index = 0; sp[sp_index]; sp_index++)
       std::cout << sp[sp_index] << std::endl;
   PHYSFS_freeList(sp);
 }
@@ -104,9 +103,9 @@ CommandLineArguments::print_help(const char* arg0)
             << _(     "Environment variables:") << "\n"
             << _(     "  SUPERTUX2_USER_DIR           Directory for user data (savegames, etc.)" ) << "\n"
             << _(     "  SUPERTUX2_DATA_DIR           Directory for the games datafiles" ) << "\n"<< "\n"
-    
-                 
-    
+
+
+
             << std::flush;
 }
 
@@ -177,8 +176,8 @@ CommandLineArguments::parse_args(int argc, char** argv)
     {
       use_fullscreen = false;
 
-      window_size = Size(800, 600);
-      fullscreen_size = Size(800, 600);
+      window_size = Size(1280, 800);
+      fullscreen_size = Size(1280, 800);
       fullscreen_refresh_rate = 0;
       aspect_size = Size(0, 0);  // auto detect
     }