URL:
  <http://gna.org/bugs/?21803>

                 Summary: Map canvas sliding after reconnecting
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Sun 16 Mar 2014 02:35:32 PM EET
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:

I have not tried to setup actual test, but reading the sources...

Client remembers the old mapview canvas position so it can smoothly slide the
view when new position is set. There's two exceptions:
- When client is first started, static variable "first" in
center_tile_mapcanvas() tells that there's no old position to slide from
- set_mapview_scroll_pos() that's called for scroll bar handling disables
sliding temporarily

Neither of these seem to handle the case of client to remembering position
from the previous server when connecting new one. In theory this can result in
at least unnecessary sliding from randomish position to the position game
should start from. Worse things may happen if old server had bigger map than
new one and the client remembers position outside new map boundaries.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21803>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to