Changeset - r1365:0e62079bd195
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-02-13 11:31:35
tron@openttd.org
(svn r1869) Fix some bugs in the bulldozer movement implementation.
Now they move in a sane pattern.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
vehicle.c
Show inline comments
 
@@ -788,8 +788,8 @@ static void BulldozerInit(Vehicle *v)
 
}
 

	
 
typedef struct BulldozerMovement {
 
	byte direction:2;
 
	byte image:2;
 
	byte direction:2;
 
	byte duration:3;
 
} BulldozerMovement;
 

	
 
@@ -839,7 +839,7 @@ static void BulldozerTick(Vehicle *v)
 
		v->y_pos += _inc_by_dir[b->direction].y;
 

	
 
		v->u.special.unk2++;
 
		if (v->u.special.unk2 < b->duration) {
 
		if (v->u.special.unk2 >= b->duration) {
 
			v->u.special.unk2 = 0;
 
			v->u.special.unk0++;
 
			if (v->u.special.unk0 == lengthof(_bulldozer_movement)) {
0 comments (0 inline, 0 general)