diff --git a/src/scene.cpp b/src/scene.cpp index c9d5618a..376b6769 100644 --- a/src/scene.cpp +++ b/src/scene.cpp @@ -457,7 +457,7 @@ void Scene::ReleaseAllPrimitiveRenderers(uintptr_t key) } //----------------------------------------------------------------------------- -void Scene::AddTile(TileSet *tileset, int id, vec3 pos, int o, vec2 scale, float degrees) +void Scene::AddTile(TileSet *tileset, int id, vec3 pos, int o, vec2 scale, float radians) { ASSERT(id < tileset->GetTileCount()); @@ -465,7 +465,7 @@ void Scene::AddTile(TileSet *tileset, int id, vec3 pos, int o, vec2 scale, float mat4 model = mat4::translate(pos) * mat4::scale(scale.x, scale.y, 1.f) * mat4::translate(size.x * 0.5f, size.y * 0.5f, 0.f) - * mat4::rotate(radians(scale.x * scale.y < 0 ? degrees : -degrees), + * mat4::rotate(scale.x * scale.y < 0 ? radians : -radians, vec3::axis_z); AddTile(tileset, id, model); diff --git a/src/scene.h b/src/scene.h index fc107a0d..ad4c234d 100644 --- a/src/scene.h +++ b/src/scene.h @@ -229,7 +229,7 @@ public: /* FIXME: this should be deprecated -- it doesn't really match * the architecture we want to build */ - void AddTile(TileSet *tileset, int id, vec3 pos, int o, vec2 scale, float angle); + void AddTile(TileSet *tileset, int id, vec3 pos, int o, vec2 scale, float radians); void AddTile(TileSet *tileset, int id, mat4 model); public: