Skip to content

Commit

Permalink
Missing include, get!
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Feb 23, 2012
1 parent 6a22417 commit 70829b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SpriteObjects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "WorldSegment.h"
#include "SpriteColors.h"
#include "SpriteMaps.h"
#include <cmath>

#define ALL_BORDERS 255

Expand Down Expand Up @@ -239,7 +240,7 @@ void c_sprite::set_by_xml(TiXmlElement *elemSprite)
if (scaleStr != NULL && scaleStr[0] != 0)
{
int scalev=atoi(scaleStr);
spritescale=pow(2.0f,(float)scalev);
spritescale=std::pow(2.0f,(float)scalev);
}
//load files, if any
const char* filename = elemSprite->Attribute("file");
Expand Down

0 comments on commit 70829b7

Please sign in to comment.