diff options
Diffstat (limited to 'src/components.cpp')
-rw-r--r-- | src/components.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/components.cpp b/src/components.cpp index 6571e2f..732e21f 100644 --- a/src/components.cpp +++ b/src/components.cpp @@ -144,18 +144,17 @@ void RenderSystem::render(void) sp.offset_tex.x + sp.size_tex.x, sp.offset_tex.y, sp.offset_tex.x + sp.size_tex.x, sp.offset_tex.y + sp.size_tex.y, + sp.offset_tex.x, sp.offset_tex.y, sp.offset_tex.x + sp.size_tex.x, sp.offset_tex.y + sp.size_tex.y, - sp.offset_tex.x, sp.offset_tex.y + sp.size_tex.y, - sp.offset_tex.x, sp.offset_tex.y}; - - + sp.offset_tex.x, sp.offset_tex.y + sp.size_tex.y}; + GLfloat coords[] = {loc.x, loc.y, visible.z + its, loc.x + size.x, loc.y, visible.z + its, loc.x + size.x, loc.y + size.y, visible.z + its, - loc.x + size.x, loc.y + size.y, visible.z + its, - loc.x, loc.y + size.y, visible.z + its, - loc.x, loc.y, visible.z + its}; + loc.x, loc.y, visible.z + its, + loc.x + size.x, loc.y + size.y, visible.z + its, + loc.x, loc.y + size.y, visible.z + its}; // make the entity hit flash red |