From 74c6854fd8dcbaee736ac0421805ff1e03c4a1e2 Mon Sep 17 00:00:00 2001 From: iamn1ck Date: Sun, 19 Feb 2017 07:00:34 -0600 Subject: -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 --- src/entity.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'src/entity.cpp') 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; } -- cgit v1.2.3