From 7bc733dc10f3d01985021b7b5d6ae140dd5af6f1 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 29 Jan 2008 21:39:41 +0000 Subject: large update. cleaned up some code. added new effects for almost everything --- src/game/client/gc_render_map.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/client/gc_render_map.cpp') diff --git a/src/game/client/gc_render_map.cpp b/src/game/client/gc_render_map.cpp index ec96f583..4728f771 100644 --- a/src/game/client/gc_render_map.cpp +++ b/src/game/client/gc_render_map.cpp @@ -148,7 +148,7 @@ void render_quads(QUAD *quads, int num_quads, void (*eval)(float time_offset, in } -void render_tilemap(TILE *tiles, int w, int h, float scale, int flags) +void render_tilemap(TILE *tiles, int w, int h, float scale, vec4 color, int flags) { //gfx_texture_set(img_get(tmap->image)); float screen_x0, screen_y0, screen_x1, screen_y1; @@ -160,6 +160,7 @@ void render_tilemap(TILE *tiles, int w, int h, float scale, int flags) float final_tilesize_scale = final_tilesize/tile_pixelsize; gfx_quads_begin(); + gfx_setcolor(color.r, color.g, color.b, color.a); int starty = (int)(screen_y0/scale)-1; int startx = (int)(screen_x0/scale)-1; -- cgit 1.4.1