summaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authoriamn1ck <iamn1ck@yahoo.com>2017-02-19 07:00:34 -0600
committerTom Barrett <tombarrett@siu.edu>2017-03-07 13:22:46 -0600
commit74c6854fd8dcbaee736ac0421805ff1e03c4a1e2 (patch)
tree4a3ae40bea9b07a2111128e98d9272bdbac2af87 /src/entity.cpp
parent03885192b9ff7d3c5e2dcfd98aefd21e9b62f603 (diff)
-quadtree and opengl rendering are now in the master branch !
-using sdl_rect for location and size ended up being not so great due to it not having floats, so we reverted back to using location -much, much refractoring is now needed
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index a2c2d87..13bd290 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -2,19 +2,6 @@
void Entity::Place()
{
- if(type == CREATURE_TYPE){
- if(gender)
- SDL_SetRenderDrawColor(renderer,255,0,0,255);
- else
- if(pregnate)
- SDL_SetRenderDrawColor(renderer,255,0,255,255);
- else
- SDL_SetRenderDrawColor(renderer,0,0,255,255);
- }
- else if (type == RESOURCE_TYPE)
- SDL_SetRenderDrawColor(renderer,0,255,0,255);
-
- SDL_RenderFillRect(renderer, &rect);
-
- SDL_SetRenderDrawColor(renderer,0,0,0,0);
+ gfxData.x = L.x;
+ gfxData.y = L.y;
}