• R/O
  • SSH
  • HTTPS

xangband: Commit


Commit MetaInfo

Révision1894 (tree)
l'heure2013-03-17 01:59:53
Auteuriks

Message de Log

Fix crush bug when the size of a sub window is changed that is displaying an overhead view of current floor

Change Summary

Modification

--- TinyAngband/trunk/src/cave.c (revision 1893)
+++ TinyAngband/trunk/src/cave.c (revision 1894)
@@ -1723,8 +1723,7 @@
17231723 /* Get size */
17241724 Term_get_size(&wid, &hgt);
17251725 hgt -= 2;
1726- wid -= 14;
1727- if (use_bigtile) wid /= 2;
1726+ wid = (!use_bigtile) ? (wid - 14) : ((wid - 16) / 2);
17281727
17291728 yrat = (cur_hgt + hgt - 1) / hgt;
17301729 xrat = (cur_wid + wid - 1) / wid;
Afficher sur ancien navigateur de dépôt.