From 9c704c6a0510e9c5f8af8e9c1f810e9688345111 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 1 Sep 2008 05:54:00 +0000 Subject: added mapimages component --- src/game/client/components/maplayers.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/game/client/components/maplayers.cpp') diff --git a/src/game/client/components/maplayers.cpp b/src/game/client/components/maplayers.cpp index 1c72a200..e1518036 100644 --- a/src/game/client/components/maplayers.cpp +++ b/src/game/client/components/maplayers.cpp @@ -1,15 +1,10 @@ - -extern "C" { - #include -} - #include #include #include #include -#include #include +#include #include "maplayers.hpp" @@ -125,7 +120,7 @@ void MAPLAYERS::on_render() if(tmap->image == -1) gfx_texture_set(-1); else - gfx_texture_set(img_get(tmap->image)); + gfx_texture_set(gameclient.mapimages->get(tmap->image)); TILE *tiles = (TILE *)map_get_data(tmap->data); gfx_blend_none(); @@ -139,7 +134,7 @@ void MAPLAYERS::on_render() if(qlayer->image == -1) gfx_texture_set(-1); else - gfx_texture_set(img_get(qlayer->image)); + gfx_texture_set(gameclient.mapimages->get(qlayer->image)); QUAD *quads = (QUAD *)map_get_data_swapped(qlayer->data); -- cgit 1.4.1