From 9d4ff294129545d7266f03cd51135d43e1c47967 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 12 Mar 2016 21:51:36 -0500 Subject: Fixed bug that caused floors and ramps to not spawn at correct angles --- gamemode/itemsystem/items/floor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gamemode/itemsystem/items/floor.lua') diff --git a/gamemode/itemsystem/items/floor.lua b/gamemode/itemsystem/items/floor.lua index 21216f3..af3a0fd 100644 --- a/gamemode/itemsystem/items/floor.lua +++ b/gamemode/itemsystem/items/floor.lua @@ -42,7 +42,7 @@ function ITEM:OnPrimary(pl,tr) if (tr.Hit) then local drop = ents.Create("ws_prop") drop:SetModel("models/props_wasteland/wood_fence01a.mdl") - local Aim = Angle(0,pl:GetAimVector():Angle().y+90,0) + local Aim = Angle(0,pl:GetAimVector():Angle().y+90,90) local Pos = tr.HitPos if(pl:KeyDown(IN_SPEED)) then Pos.x = Pos.x - (Pos.x%20) -- cgit v1.2.3-70-g09d2