summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Baldeck <alexander@archlinux.org>2004-09-26 21:22:55 +0000
committerAlexander Baldeck <alexander@archlinux.org>2004-09-26 21:22:55 +0000
commite9c8ad7a7d7916667697ee4fa41dee5973f6b96d (patch)
treed9cbd37ea44d13bd4f31a05ddf3dc6b4116bb7fe /src
parentdf774e86e87da20bc4910bee873df3843665b5e8 (diff)
downloadmana-client-e9c8ad7a7d7916667697ee4fa41dee5973f6b96d.tar.gz
mana-client-e9c8ad7a7d7916667697ee4fa41dee5973f6b96d.tar.bz2
mana-client-e9c8ad7a7d7916667697ee4fa41dee5973f6b96d.tar.xz
mana-client-e9c8ad7a7d7916667697ee4fa41dee5973f6b96d.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/graphic/graphic.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index 9009183e..fed8599b 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -137,8 +137,10 @@ void do_graphic(void) {
for(int j=0;j<20;j++)
for(int i=0;i<26;i++) {
- if(get_tile(i+camera_x, j+camera_y, 0)>=0 && get_tile(i+camera_x, j+camera_y, 0)<600)draw_rle_sprite(buffer, (RLE_SPRITE *)tileset[get_tile(i+camera_x, j+camera_y, 0)].dat, i*16-offset_x, j*16-offset_y);
- if(get_tile(i+camera_x, j+camera_y, 1)>0 && get_tile(i+camera_x, j+camera_y, 1)<600)draw_rle_sprite(buffer, (RLE_SPRITE *)tileset[get_tile(i+camera_x, j+camera_y, 1)].dat, i*16-offset_x, j*16-offset_y);
+ if( /* get_tile(i+camera_x, j+camera_y, 0) >= 0 && */ get_tile(i+camera_x, j+camera_y, 0) < 600)
+ draw_rle_sprite(buffer, (RLE_SPRITE *)tileset[get_tile(i+camera_x, j+camera_y, 0)].dat, i*16-offset_x, j*16-offset_y);
+ if( get_tile(i+camera_x, j+camera_y, 1) > 0 && get_tile(i+camera_x, j+camera_y, 1)<600)
+ draw_rle_sprite(buffer, (RLE_SPRITE *)tileset[get_tile(i+camera_x, j+camera_y, 1)].dat, i*16-offset_x, j*16-offset_y);
}
NODE *node = get_head();