Use supertux2 on Windows, zeekling squish animation fix.
authorMathnerd314 <man.is.allan@gmail.com>
Mon, 25 Jan 2010 23:35:02 +0000 (23:35 +0000)
committerMathnerd314 <man.is.allan@gmail.com>
Mon, 25 Jan 2010 23:35:02 +0000 (23:35 +0000)
SVN-Revision: 6273

data/images/creatures/zeekling/zeekling.sprite
src/badguy/zeekling.cpp
src/supertux/main.cpp

index 2b5303a..908b4dc 100644 (file)
   (mirror-action "left"))
  (action
   (name "squished-left")
-  (hitbox 8 -19 31 30)
+  (hitbox 8 19 31 30)
   (images "squished.png"))
  (action
   (name "squished-right")
-  (hitbox 25 -19 31 30)
+  (hitbox 25 19 31 30)
   (mirror-action "squished-left"))
  (action
   (name "diving-left")
index 90b30bb..8c64887 100644 (file)
@@ -64,7 +64,6 @@ Zeekling::collision_squished(GameObject& object)
 {
   sprite->set_action(dir == LEFT ? "squished-left" : "squished-right");
   kill_squished(object);
-  kill_fall();
   return true;
 }
 
index 048ebab..98a6cc3 100644 (file)
@@ -96,14 +96,37 @@ Main::init_physfs(const char* argv0)
   // PHYSFS_setSaneConfig)
   const char* application = PACKAGE_NAME;
   const char* userdir = PHYSFS_getUserDir();
-  char* writedir = new char[strlen(userdir) + strlen(application) + 2];
+
+  char* writedir = new char[strlen(userdir) + strlen(application) + 
+#ifndef _WIN32
+                                                                    2];
+#else
+                                                                    1];
+#endif
 
   // Set configuration directory
-  sprintf(writedir, "%s.%s", userdir, application);
+  sprintf(writedir, 
+#ifndef _WIN32
+                    "%s.%s",
+#else
+                    "%s%s",
+#endif
+                             userdir, application);
   if(!PHYSFS_setWriteDir(writedir)) {
     // try to create the directory
-    char* mkdir = new char[strlen(application) + 2];
-    sprintf(mkdir, ".%s", application);
+    char* mkdir = new char[strlen(application) +
+#ifndef _WIN32
+                                                 2];
+#else
+                                                 1];
+#endif
+    sprintf(mkdir,
+#ifndef _WIN32
+                   ".%s",
+#else
+                   "%s",
+#endif
+                          application);
     if(!PHYSFS_setWriteDir(userdir) || !PHYSFS_mkdir(mkdir)) {
       std::ostringstream msg;
       msg << "Failed creating configuration directory '"