Cursor bugfix
This commit is contained in:
parent
d9bb730ecd
commit
89b0dce6b9
@ -35,7 +35,7 @@ end
|
|||||||
function cursor:toggle_grab()
|
function cursor:toggle_grab()
|
||||||
local acc,src,tar=self:acceptance_state()
|
local acc,src,tar=self:acceptance_state()
|
||||||
if acc==acceptance_state.not_grabbed then
|
if acc==acceptance_state.not_grabbed then
|
||||||
self.grabbed=self:hover_slot()
|
if (self.board.slots[self:hover_slot()]:peek()) self.grabbed=self:hover_slot()
|
||||||
elseif acc==acceptance_state.would_accept then
|
elseif acc==acceptance_state.would_accept then
|
||||||
local card=src:pop()
|
local card=src:pop()
|
||||||
tar:add(card)
|
tar:add(card)
|
||||||
|
Loading…
Reference in New Issue
Block a user