Skip to content

Commit

Permalink
Tweak to allow MinGW to compile, issues #26 & 27
Browse files Browse the repository at this point in the history
  • Loading branch information
LMH0013 authored and Tobias Markus committed Jan 24, 2014
1 parent 476e82d commit 8246a7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 2 additions & 5 deletions src/badguy/livefire.cpp
Expand Up @@ -23,16 +23,13 @@
#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";
Expand Down
4 changes: 1 addition & 3 deletions src/badguy/sspiky.cpp
Expand Up @@ -20,12 +20,10 @@
#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;
}

Expand Down

0 comments on commit 8246a7f

Please sign in to comment.