X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_hook.qc;h=e28b9b2ae7ad47c3112857a1ebcc642d3e638ae9;hp=6f94cb3d06a0b5fb70ad2c9ad6131c4144334dc9;hb=ae2c1407ec9a05e4f501a6604a7cce8e1030df9f;hpb=8b38ad6987192a2129a7aa55410fd6d729425a28 diff --git a/qcsrc/server/g_hook.qc b/qcsrc/server/g_hook.qc index 6f94cb3d06..e28b9b2ae7 100644 --- a/qcsrc/server/g_hook.qc +++ b/qcsrc/server/g_hook.qc @@ -8,7 +8,7 @@ #include "cl_player.qh" #include "command/common.qh" #include "round_handler.qh" -#include "vehicles/vehicle.qh" +#include "../common/vehicles/sv_vehicles.qh" #include "../common/constants.qh" #include "../common/util.qh" #include "../common/weapons/all.qh" @@ -315,7 +315,7 @@ void FireGrapplingHook (void) vector org; vector vs; - if(forbidWeaponUse()) return; + if(forbidWeaponUse(self)) return; if(self.vehicle) return; makevectors(self.v_angle);