X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FCharacter.cc;h=2290e3c2797a5d1023f63ddc4335921c04dfc602;hp=9da4344aab361bd369eb26f41f56677eff2a5689;hb=e973a129b5b83b628ba3f09e8c95682fc74080cd;hpb=4f62ce947db282f0bbf4d49b3aafb83d7cf51adc diff --git a/src/Character.cc b/src/Character.cc index 9da4344..2290e3c 100644 --- a/src/Character.cc +++ b/src/Character.cc @@ -126,11 +126,10 @@ void Character::draw(Mf::Scalar alpha) const //glColor3f(1.0f, 1.0f, 1.0f); tilemap.bind(); - Tilemap::Index frame = animation.getFrame(); + Mf::Texture::TileIndex frame = animation.getFrame(); + Mf::Texture::Orientation orientation = Mf::Texture::NORMAL; - Tilemap::Orientation orientation = Tilemap::NORMAL; - - if (mState.velocity[0] < 0.0) orientation = Tilemap::REVERSE; + if (mState.velocity[0] < 0.0) orientation = Mf::Texture::REVERSE; Mf::Scalar coords[8]; tilemap.getTileCoords(frame, coords, orientation);