summaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2016-05-02 16:21:23 -0500
committertom <tom@ground-control>2016-05-02 16:21:23 -0500
commit084d556f831832c1ca15d1e7cd52944815d9beea (patch)
tree675973a47691c06f19bd27a742c4888c02d66863 /src/entity.cpp
parent42d7b3bb511333e242a74f360873deb64cd89522 (diff)
implemented the location fully into entity
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 10a3ccc..909dd15 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -2,7 +2,7 @@
void Entity::Place()
{
- SDL_Rect rect = {xPosition, yPosition, width/8, height/8};
+ SDL_Rect rect = {L.x, L.y, width/8, height/8};
SDL_RenderCopyEx(renderer,texture,NULL,&rect,degrees,NULL,SDL_FLIP_NONE);
}