Tweak to allow MinGW to compile, issues #26 & 27
authorLMH <lmh.0013@gmail.com>
Mon, 28 Oct 2013 01:52:04 +0000 (15:52 -1000)
committerLMH <lmh.0013@gmail.com>
Mon, 28 Oct 2013 01:52:04 +0000 (15:52 -1000)
src/badguy/livefire.cpp
src/badguy/sspiky.cpp

index 9fb56a7..cc5011c 100644 (file)
 #include "supertux/object_factory.hpp"
 #include "supertux/sector.hpp"
 
-static const float WALKSPEED = 80;
-static const float MAXDROPHEIGHT = 20;
-
 LiveFire::LiveFire(const Reader& reader) :
   WalkingBadguy(reader, "images/creatures/livefire/livefire.sprite", "left", "right"),
   lightsprite(sprite_manager->create("images/objects/lightmap_light/lightmap_light-medium.sprite")),
   state(STATE_WALKING)  
 {
-  walk_speed = WALKSPEED;
-  max_drop_height = MAXDROPHEIGHT;
+  walk_speed = 80;
+  max_drop_height = 20;
   lightsprite->set_blend(Blend(GL_SRC_ALPHA, GL_ONE));
   lightsprite->set_color(Color(1.0f, 0.9f, 0.8f));
   death_sound = "sounds/fall.wav";
index a386184..cea68dd 100644 (file)
 #include "sprite/sprite.hpp"
 #include "supertux/object_factory.hpp"
 
-static const float WALKSPEED = 80;
-
 SSpiky::SSpiky(const Reader& reader)
   : WalkingBadguy(reader, "images/creatures/spiky/sleepingspiky.sprite", "left", "right"), state(SSPIKY_SLEEPING)
 {
-  walk_speed = WALKSPEED;
+  walk_speed = 80;
   max_drop_height = 600;
 }