Changeset - r5096:e5dc25c7273b
[Not reviewed]
master
0 1 0
KUDr - 18 years ago 2006-11-16 12:31:38
kudr@openttd.org
(svn r7166) -Fix: [FS#402] MiniMap was misplacing vehicles sometimes (HMage)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
smallmap_gui.c
Show inline comments
 
@@ -695,8 +695,8 @@ skip_column:
 
					(v->vehstatus & (VS_HIDDEN | VS_UNCLICKABLE)) == 0) {
 
				// Remap into flat coordinates.
 
				Point pt = RemapCoords(
 
					(v->x_pos - WP(w,smallmap_d).scroll_x) / TILE_SIZE,
 
					(v->y_pos - WP(w,smallmap_d).scroll_y) / TILE_SIZE,
 
					v->x_pos / TILE_SIZE - WP(w,smallmap_d).scroll_x / TILE_SIZE, // divide each one separately because (a-b)/c != a/c-b/c in integer world
 
					v->y_pos / TILE_SIZE - WP(w,smallmap_d).scroll_y / TILE_SIZE, //    dtto
 
					0);
 
				x = pt.x;
 
				y = pt.y;
0 comments (0 inline, 0 general)