home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c82bfb0
)
Client: Don't confuse map window's winconfig view centering.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 6 Dec 2014 07:16:43 +0000
(08:16 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 6 Dec 2014 07:16:43 +0000
(08:16 +0100)
src/client/io.c
patch
|
blob
|
history
diff --git
a/src/client/io.c
b/src/client/io.c
index d1fffc05296d930f39dce3187492191ac231d134..77fade680f5afa65e7bf6cb2befa4144c1ea0af1 100644
(file)
--- a/
src/client/io.c
+++ b/
src/client/io.c
@@
-330,9
+330,12
@@
extern char * io_loop()
if (change_in_client || read_worldstate() || read_queue())
{
struct Win * win_map = get_win_by_id('m');
if (change_in_client || read_worldstate() || read_queue())
{
struct Win * win_map = get_win_by_id('m');
- struct yx_uint8 pos = world.look? world.look_pos : world.player_pos;
- win_map->center.y = pos.y;
- win_map->center.x = pos.x * 2 + (pos.y % 2);
+ if (0 == win_map->view) /* So the map window's winconfig views */
+ { /* don't get confused by the centering. */
+ struct yx_uint8 pos=world.look?world.look_pos:world.player_pos;
+ win_map->center.y = pos.y;
+ win_map->center.x = pos.x * 2 + (pos.y % 2);
+ }
draw_all_wins();
}
change_in_client = 0;
draw_all_wins();
}
change_in_client = 0;