Changeset - r28495:194cf9742d38
[Not reviewed]
master
0 1 0
Peter Nelson - 3 months ago 2024-01-17 13:23:55
peter1138@openttd.org
Fix #11815, bb491127: Missing brackets prevented vehicles turning properly. (#11816)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/direction_func.h
Show inline comments
 
@@ -71,7 +71,7 @@ inline DirDiff DirDifference(Direction d
 
	assert(IsValidDirection(d1));
 
	/* Cast to uint so compiler can use bitmask. If the difference is negative
 
	 * and we used int instead of uint, further "+ 8" would have to be added. */
 
	return static_cast<DirDiff>(static_cast<uint>(d0) - static_cast<uint>(d1) % 8);
 
	return static_cast<DirDiff>((static_cast<uint>(d0) - static_cast<uint>(d1)) % 8);
 
}
 

	
 
/**
0 comments (0 inline, 0 general)