Changeset - r16513:b3de64b723cb
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-11-18 23:09:24
rubidium@openttd.org
(svn r21249) -Fix (r21240, r21236) [FS#4242]: rear ends of dualheaded engines didn't smoke nor spark (Hirundo)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -1871,7 +1871,7 @@ void Vehicle::UpdateVisualEffect(bool al
 
		default: break;
 
	}
 
	if (default_effect == VE_DEFAULT) {
 
		if (this->type == VEH_TRAIN && Train::From(this)->IsEngine()) {
 
		if (this->type == VEH_TRAIN && !(Train::From(this)->IsWagon() || Train::From(this)->IsArticulatedPart())) {
 
			if (e->u.rail.engclass == 0) {
 
				/* Steam is offset by -4 units */
 
				SB(this->vcache.cached_vis_effect, VE_OFFSET_START, VE_OFFSET_COUNT, VE_OFFSET_CENTRE - 4);
 
@@ -1955,7 +1955,7 @@ void Vehicle::ShowVisualEffect() const
 
		}
 

	
 
		if (effect_type == VE_TYPE_DEFAULT) {
 
			if (v->type == VEH_TRAIN && Train::From(v)->IsEngine()) {
 
			if (v->type == VEH_TRAIN) {
 
				/* Use default effect type for engine class. */
 
				effect_type = RailVehInfo(v->engine_type)->engclass + 1;
 
			} else {
0 comments (0 inline, 0 general)