• R/O
  • SSH
  • HTTPS

angband65: Commit


Commit MetaInfo

Revision148 (tree)
Zeit2009-05-16 18:06:20
Autorpaulblay

Log Message

Closes #16760 Spell lists do not display correctly.

Ändern Zusammenfassung

Diff

--- trunk/Angband65/src/util.c (revision 147)
+++ trunk/Angband65/src/util.c (revision 148)
@@ -1501,7 +1501,6 @@
15011501 byte color;
15021502 int w, h;
15031503
1504-
15051504 /* Obtain the size */
15061505 (void)Term_get_size(&w, &h);
15071506
--- trunk/Angband65/src/cmd5.c (revision 147)
+++ trunk/Angband65/src/cmd5.c (revision 148)
@@ -568,8 +568,8 @@
568568 col = 4;
569569
570570 /* Title the list */
571- prt("", 0, 1);
572- put_str("Name", col + 3, 1);
571+ prt("", 1, 0);
572+ put_str("Name", 1, col + 3);
573573 for (i = 0; i < count; i++) /* Dump the spells */
574574 {
575575 s_ptr = &s_info[index[i]]; /* Access the spell */
@@ -582,7 +582,7 @@
582582
583583 /* TODO Consider supporting show_spell_numbers from Angband/64 */
584584 /* TODO Consider supporting cheat_spell_info and cheat_any from Angband/64 */
585- put_str("Lv Ma Fail", col + 27, 1);
585+ put_str("Lv Ma Fail", 1, col + 27);
586586
587587 my_strcpy(info,"",sizeof(info));
588588 my_strcpy(info,"",sizeof(info));
@@ -622,12 +622,12 @@
622622 strnfmt(out_val, sizeof(out_val), "%c) %-23s%3d %2d",
623623 I2A(i), s_name + s_ptr->name, s_ptr->level, spell_mana(index[i]));
624624 }
625- prt("", 0, 2+i); /* this clears the line */
626- c_put_str(color,out_val,col,2+i);
625+ prt("", 2+i, 0); /* this clears the line */
626+ c_put_str(color,out_val,2+i,col);
627627 }
628628
629629 /* Clear the bottom line */
630- prt("", 0, 2 + i);
630+ prt("", 2 + i, 0);
631631 }
632632
633633 /*
Show on old repository browser