From 73b0887fc82364e46cf8202ab16ac366150ec862 Mon Sep 17 00:00:00 2001 From: katono Date: Thu, 22 Jan 2015 23:07:51 +0900 Subject: [PATCH] Fixed bug: if g:rogue#tombstone is 0 and message is English, the space between 'a' and monster name was missing: like 'killed by ahobgoblin'. --- autoload/rogue/score.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/rogue/score.lua b/autoload/rogue/score.lua index 068c8d8..f373014 100644 --- a/autoload/rogue/score.lua +++ b/autoload/rogue/score.lua @@ -145,7 +145,9 @@ function g.killed_by(monster, other) buf = buf .. g.znum(g.rogue.gold) buf = buf .. g.mesg[496] else - buf = buf .. buf2 + if buf2 ~= '' then + buf = buf .. ' ' .. buf2 + end buf = buf .. string.format(g.mesg[181]:gsub("%%ld", "%%d"), g.rogue.gold) end g.message(buf)