Permalink
Browse files

Update dragdrop.lua

  • Loading branch information...
1 parent 82e9aa2 commit b4d901317897f53177e8120a7a33e389fd399d7e @BlueRoyal BlueRoyal committed Jan 19, 2014
Showing with 2 additions and 3 deletions.
  1. +2 −3 garrysmod/lua/includes/extensions/client/panel/dragdrop.lua
@@ -1,4 +1,3 @@
-
if SERVER then return end
--[[
@@ -258,7 +257,7 @@ hook.Add( "DrawOverlay", "DragNDropPaint", function()
dist = dist / 512
surface.SetAlphaMultiplier( Alpha * dist );
- v:PaintAt( ox + v.x, oy + v.y );
+ v:PaintAt( ox + v.x - v:GetWide() / 2, oy + v.y - v:GetTall() / 2 ); // fill the gap between the top left corner and the mouse position
end
@@ -578,4 +577,4 @@ function dragndrop.HoverThink()
end
-end
+end

0 comments on commit b4d9013

Please sign in to comment.