Changeset - r7419:e9100cbd3960
[Not reviewed]
master
0 1 0
maedhros - 17 years ago 2007-08-06 13:44:50
maedhros@openttd.org
(svn r10812) -Fix (r10097) [FS#1093]: Make RoadVehicle::MarkDirty() mark all parts of articulated vehicles as dirty, not just the front.
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/roadveh_cmd.cpp
Show inline comments
 
@@ -556,8 +556,10 @@ CommandCost CmdTurnRoadVeh(TileIndex til
 

	
 
void RoadVehicle::MarkDirty()
 
{
 
	this->cur_image = this->GetImage(this->direction);
 
	MarkAllViewportsDirty(this->left_coord, this->top_coord, this->right_coord + 1, this->bottom_coord + 1);
 
	for (Vehicle *v = this; v != NULL; v = v->next) {
 
		v->cur_image = v->GetImage(v->direction);
 
		MarkAllViewportsDirty(v->left_coord, v->top_coord, v->right_coord + 1, v->bottom_coord + 1);
 
	}
 
}
 

	
 
void RoadVehicle::UpdateDeltaXY(Direction direction)
0 comments (0 inline, 0 general)