Jump to content
SubSpace Forum Network

Recommended Posts

Posted

Dunno why but the selection moves along with the screen when clicking the radar, when scrolling with the scrollbars or using left or right or up or down, then it doesn't move along.

 

Weird :s

Posted

interesting

 

maybe 'picradar_click' should just call updateselectiononpreview or something like that

 

or wait... that one is called with updatepreview hm? .... anyways... i cant even check this out... boohoo ;)

Posted

ok i was able to fix it, but still don't understand how it happens

 

in updateselectiononpreview there is

 

If selstate = append And (Not SharedVar.MouseDown Or curtool = T_hand) Then

 

and when using the arrow keys to navigate on the map, the updatelevel gets called in the change of the hscr and vscr (which wasn't exactly the way i want it to as it does it double but meh) and when using radar it calls updatelevel afterwards.

 

Now somehow after 30min of debugging i found out that sharedvar.mousedown = false when using arrow keys, and it was true when clicking in the radar.

 

Tadaah, you got yourself a bug, as it wont update when the mouse is down.

 

This is, personnally, one of the most stupid and hidden bugs i've seen -_-

 

I don't even know why i put

(Not SharedVar.MouseDown Or curtool = T_hand) in the if in the first place

Edit: oh yeah, you can't move the selection because it constantly updated to its position

 

Conclusion: the sharedvar.mousedown using for both frmmain and frmgeneral => BAD IDEA !, i removed the mousedown = true from the radar as it was not needed anyway.

Guest
This topic is now closed to further replies.
×
×
  • Create New...