(svn r4786) - Newstations: in GetPlatformInfo() ensure negative values are only four bits
This commit is contained in:
		@@ -213,8 +213,8 @@ uint32 GetPlatformInfo(Axis axis, byte tile, int platforms, int length, int x, i
 | 
				
			|||||||
	if (centred) {
 | 
						if (centred) {
 | 
				
			||||||
		x -= platforms / 2;
 | 
							x -= platforms / 2;
 | 
				
			||||||
		y -= length / 2;
 | 
							y -= length / 2;
 | 
				
			||||||
		SB(retval,  0, 4, clamp(y, -8, 7));
 | 
							SB(retval,  0, 4, y & 0xF);
 | 
				
			||||||
		SB(retval,  4, 4, clamp(x, -8, 7));
 | 
							SB(retval,  4, 4, x & 0xF);
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		SB(retval,  0, 4, y);
 | 
							SB(retval,  0, 4, y);
 | 
				
			||||||
		SB(retval,  4, 4, length - y - 1);
 | 
							SB(retval,  4, 4, length - y - 1);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user