Skip to content

Commit

Permalink
Fixed entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven-Hendrik Haase committed Mar 22, 2014
1 parent 808a84e commit f28a98c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions BGJ07/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ set(helper
"src/errorHelper.cpp"
"src/game.cpp"
"src/world.cpp"
"src/entity.cpp"
"src/resources.cpp")

include_directories(SYSTEM ${BULLET_INCLUDE_DIRS})
Expand Down
2 changes: 1 addition & 1 deletion BGJ07/src/entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ void Entity::update(float dt) {
}

void Entity::draw(SDL_Renderer* renderer) {
RenderHelper::renderTexture(m_Texture, renderer, position.x, position.y);
RenderHelper::renderTexture(texture, renderer, position.x(), position.y());
}
1 change: 1 addition & 0 deletions BGJ07/src/entity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define ENTITY_HPP

#include <btBulletDynamicsCommon.h>
#include <SDL.h>

class Entity {
public:
Expand Down

0 comments on commit f28a98c

Please sign in to comment.