Prev: 27901 Up: Map Next: 27922
27911: Increase Speed
Used by the routine at UpdatePlayerCar.
Adds 4 to the speed, unless that would take it to the top speed of 192 or more, in which case the speed is left as it is.
HandlerCanAccelerate 27911 LD A,(24077) Fetch the speed of the car (Speed).
27914 ADD A,4 Add 4 to the speed.
27916 CP 192 Jump to HandlerAccelerate_Gauge if the speed has reached the top speed (192 or more).
27918 JR NC,HandlerAccelerate_Gauge
27920 JR HandlerAccelerate Jump to HandlerAccelerate to write the new speed.
Prev: 27901 Up: Map Next: 27922