From 49d58dde3e63994bc85358b5f94d77b545379ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sun, 15 Oct 2017 21:47:07 +0200 Subject: [PATCH] Review fixes --- src/openrct2/ride/Vehicle.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp index 516c2be92e..65d617bab4 100644 --- a/src/openrct2/ride/Vehicle.cpp +++ b/src/openrct2/ride/Vehicle.cpp @@ -1273,11 +1273,11 @@ void vehicle_sounds_update() { volume = -10000; } - if (sprite->vehicle.sound2_id == (uint8)-1) + if (sprite->vehicle.sound2_id == RCT12_SOUND_ID_NULL) { if (vehicle_sound->sound2_id != SOUND_ID_NULL) { - vehicle_sound->sound2_id = -1; + vehicle_sound->sound2_id = SOUND_ID_NULL; Mixer_Stop_Channel(vehicle_sound->sound2_channel); } } @@ -8009,7 +8009,8 @@ loc_6DB358: regs.edx = z; regs.bl = direction; } - if (mapElement->properties.track.type == 211 || mapElement->properties.track.type == 212) + if (mapElement->properties.track.type == TRACK_ELEM_LEFT_REVERSER || + mapElement->properties.track.type == TRACK_ELEM_RIGHT_REVERSER) { if (!vehicle->is_child && vehicle->velocity <= 0x30000) {