Drop unused named return on moveMonster (nonamedreturns)

This commit is contained in:
2026-07-07 02:35:18 +02:00
parent d3ef07cfa7
commit 0caaa14198

View File

@@ -38,9 +38,9 @@ func (g *RogueGame) runners(int) {
}
// moveMonster executes a single turn of running for a monster (chase.c
// move_monst). removed reports that the monster died or left the level
// (the C -1 return).
func (g *RogueGame) moveMonster(tp *Monster) (removed bool) {
// move_monst). The result reports that the monster died or left the
// level (the C -1 return).
func (g *RogueGame) moveMonster(tp *Monster) bool {
if !tp.On(Slowed) || tp.Turn {
if g.chaseStep(tp) {
return true