[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src spot_map.cxx,1.21,1.22
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src spot_map.cxx,1.21,1.22 |
Date: |
20 Dec 2002 23:06:57 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv3087
Modified Files:
spot_map.cxx
Log Message:
added Gervases tile-index overflow fix
Index: spot_map.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/spot_map.cxx,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- spot_map.cxx 17 Oct 2002 00:10:46 -0000 1.21
+++ spot_map.cxx 20 Dec 2002 23:06:55 -0000 1.22
@@ -236,9 +236,9 @@
int start_x = Math::max(x / tile_size, 0);
int start_y = Math::max(y / tile_size, 0);
int end_x = Math::min((x + sprovider->get_width()) / tile_size,
- static_cast<unsigned int>(width/tile_size));
+ static_cast<unsigned int>((width - 1) / tile_size));
int end_y = Math::min((y + sprovider->get_height()) / tile_size,
- static_cast<unsigned int>(height/tile_size));
+ static_cast<unsigned int>((height - 1) / tile_size));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src spot_map.cxx,1.21,1.22,
grumbel <=