]> git.cworth.org Git - kub/commit
Add "select_mode" to determine if "selection_box.visible" is true or false
authorKevin Worth <kworth@kworth-laptop.(none)>
Sun, 7 Jun 2009 23:07:15 +0000 (19:07 -0400)
committerKevin Worth <kworth@kworth-laptop.(none)>
Sun, 7 Jun 2009 23:07:15 +0000 (19:07 -0400)
commit4c4fd783b71ae0330e16781581f3530ddd9b8ad8
tree183e050036ac9465e40892137543d46af610fb3f
parentc0722a461b9e4a048ee059876107a5f07e8941e1
Add "select_mode" to determine if "selection_box.visible" is true or false

    If "select_mode" is true(tile not being dragged) then
    selection_box.visible is true. Previously this check was done using
    "current_tile == -1", which was unclear.

    It could be said that it is redundant to set "select_mode" and *then*
    set "selection_box.visible" to true, but it very clearly shows what
    is being done and when. In addition, checking select_mode may be used
    later on with a completely different purpose.
kub.c