• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision29738a07b58217e0d4c3dfc857ffc329ca83cad1 (tree)
Time2014-09-01 11:26:07
Authordis- <dis.rogue@gmai...>
Commiterdis-

Log Message

fix bug on ammo crit rate display

Change Summary

Incremental Difference

--- a/src/flavor.c
+++ b/src/flavor.c
@@ -2509,6 +2509,10 @@ void object_desc(char *buf, object_type *o_ptr, u32b mode)
25092509 t = object_desc_chr(t, '/');
25102510 t = object_desc_num(t, percent / 100);
25112511 t = object_desc_chr(t, '.');
2512+ if(percent % 100 < 10)
2513+ {
2514+ t = object_desc_chr(t, '0');
2515+ }
25122516 t = object_desc_num(t, percent % 100);
25132517 t = object_desc_str(t, show_ammo_detail ? "% crit" : "%");
25142518 }
Show on old repository browser