shithub: pokecrystal

Download patch

ref: aa51dbc61245d5b4949c1872b3d3e915a981ded3
parent: e5d4f741ee4135f937ad180b1353d70291a92c13
author: Rangi <[email protected]>
date: Sun May 6 17:27:47 EDT 2018

Fix #511: eliminate "Left shift of negative value" warnings

--- a/engine/events/magnet_train.asm
+++ b/engine/events/magnet_train.asm
@@ -4,13 +4,13 @@
 	jr nz, .ToGoldenrod
 	ld a, 1 ; forwards
 	lb bc,  $40,  $60
-	lb de, (11 * 8) - (11 * 8 + 4), -$60
+	lb de, ((11 * 8) - (11 * 8 + 4)), -$60
 	jr .continue
 
 .ToGoldenrod:
 	ld a, -1 ; backwards
 	lb bc, -$40, -$60
-	lb de, (11 * 8) + (11 * 8 + 4), $60
+	lb de, ((11 * 8) + (11 * 8 + 4)), $60
 
 .continue
 	ld h, a