From efa578e8a66df4470aad61bf0af7759adf513dde Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Tue, 24 May 2016 04:59:36 +0300 Subject: [PATCH] Add aliases for color and colour. --- source/Constants.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Constants.cpp b/source/Constants.cpp index 21727e52..a7b4f8f4 100644 --- a/source/Constants.cpp +++ b/source/Constants.cpp @@ -161,6 +161,7 @@ void Register_Constants(HSQUIRRELVM vm) .Const(_SC("PlayerHeading"), EVT_PLAYERHEADING) .Const(_SC("PlayerPosition"), EVT_PLAYERPOSITION) .Const(_SC("PlayerOption"), EVT_PLAYEROPTION) + .Const(_SC("VehicleColor"), EVT_VEHICLECOLOUR) .Const(_SC("VehicleColour"), EVT_VEHICLECOLOUR) .Const(_SC("VehicleHealth"), EVT_VEHICLEHEALTH) .Const(_SC("VehiclePosition"), EVT_VEHICLEPOSITION) @@ -207,6 +208,7 @@ void Register_Constants(HSQUIRRELVM vm) .Const(_SC("OtherSync"), vcmpVehicleUpdateOtherSync) .Const(_SC("Position"), vcmpVehicleUpdatePosition) .Const(_SC("Health"), vcmpVehicleUpdateHealth) + .Const(_SC("Color"), vcmpVehicleUpdateColour) .Const(_SC("Colour"), vcmpVehicleUpdateColour) .Const(_SC("Rotation"), vcmpVehicleUpdateRotation) .Const(_SC("Max"), vcmpVehicleUpdateRotation) @@ -231,7 +233,7 @@ void Register_Constants(HSQUIRRELVM vm) .Const(_SC("Max"), vcmpDisconnectReasonAntiCheat) ); - ConstTable(vm).Enum(_SC("SqBodypart"), Enumeration(vm) + ConstTable(vm).Enum(_SC("SqBodyPart"), Enumeration(vm) .Const(_SC("Unknown"), SQMOD_UNKNOWN) .Const(_SC("Body"), vcmpBodyPartBody) .Const(_SC("Torso"), vcmpBodyPartTorso)