(svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify the code at some places

This commit is contained in:
smatz
2008-01-16 21:17:31 +00:00
parent 69cb009075
commit ac7bc24b0e
8 changed files with 54 additions and 36 deletions

View File

@@ -735,7 +735,7 @@ static void FloodVehicle(Vehicle *v)
BEGIN_ENUM_WAGONS(v)
if (IsCargoInClass(v->cargo_type, CC_PASSENGERS)) pass += v->cargo.Count();
v->vehstatus |= VS_CRASHED;
MarkAllViewportsDirty(v->left_coord, v->top_coord, v->right_coord + 1, v->bottom_coord + 1);
MarkSingleVehicleDirty(v);
END_ENUM_WAGONS(v)
v = u;