diff options
author | Alexander Baldeck <alexander@archlinux.org> | 2004-09-26 21:22:55 +0000 |
---|---|---|
committer | Alexander Baldeck <alexander@archlinux.org> | 2004-09-26 21:22:55 +0000 |
commit | e9c8ad7a7d7916667697ee4fa41dee5973f6b96d (patch) | |
tree | d9cbd37ea44d13bd4f31a05ddf3dc6b4116bb7fe /src/graphic/graphic.cpp | |
parent | df774e86e87da20bc4910bee873df3843665b5e8 (diff) | |
download | mana-e9c8ad7a7d7916667697ee4fa41dee5973f6b96d.tar.gz mana-e9c8ad7a7d7916667697ee4fa41dee5973f6b96d.tar.bz2 mana-e9c8ad7a7d7916667697ee4fa41dee5973f6b96d.tar.xz mana-e9c8ad7a7d7916667697ee4fa41dee5973f6b96d.zip |
*** empty log message ***
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r-- | src/graphic/graphic.cpp | 6 |
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(); |