From 14510570fe16766248c03449a9fc76b0353b62db Mon Sep 17 00:00:00 2001 From: Kar Date: Wed, 18 Jun 2014 00:22:28 -0400 Subject: [PATCH] GetPlayerGearState -> GetPlayerLandingGearState Please, gear and landing gear mean TWO different things! --- Scripting.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripting.cpp b/Scripting.cpp index 5b567ec..5b7152c 100644 --- a/Scripting.cpp +++ b/Scripting.cpp @@ -1092,14 +1092,14 @@ static cell AMX_NATIVE_CALL n_GetPlayerSirenState( AMX* amx, cell* params ) return pNetGame->pPlayerPool->pPlayer[playerid]->vehicleSyncData.byteSirenState; } -// native GetPlayerGearState(playerid); -static cell AMX_NATIVE_CALL n_GetPlayerGearState( AMX* amx, cell* params ) +// native GetPlayerLandingGearState(playerid); +static cell AMX_NATIVE_CALL n_GetPlayerLandingGearState( AMX* amx, cell* params ) { // If unknown server version if(!pServer) return 0; - CHECK_PARAMS(1, "GetPlayerGearState"); + CHECK_PARAMS(1, "GetPlayerLandingGearState"); int playerid = (int)params[1]; if(!IsPlayerConnected(playerid)) return 0; @@ -4317,7 +4317,7 @@ AMX_NATIVE_INFO YSINatives [] = // Special things from syncdata { "GetPlayerSirenState", n_GetPlayerSirenState }, - { "GetPlayerGearState", n_GetPlayerGearState }, + { "GetPlayerLandingGearState", n_GetPlayerLandingGearState }, { "GetPlayerHydraReactorAngle", n_GetPlayerHydraReactorAngle }, { "GetPlayerTrainSpeed", n_GetPlayerTrainSpeed }, { "GetPlayerZAim", n_GetPlayerZAim },