Skip to content

Commit

Permalink
logic corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhoribu authored Jan 19, 2025
1 parent 6af9a8f commit fc16f4b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/route2.lic
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def find_room(what, src = nil)
end
unless Map[destination_id]
echo "error: custom target (#{destination_id}) was not found in the map database"
else
echo "First closest matching custom target '#{what}' is room ##{destination_id}"
return Map[destination_id]
end
end
end
Expand Down Expand Up @@ -124,7 +127,7 @@ table_rows = []
if XMLData.game =~ /^GS/
table_rows.push(["#{0.to_s.rjust(4)}:", '', '', '', src.id, src.title[0], src.location])
else
table_rows.push(["#{0.to_s.rjust(4)}:", '', '', '', src.id, src.title[0]])
table_rows.push(["#{0.to_s.rjust(4)}:", '', '', '', src.id, src.title[0], src.location])
end
path.each do |id|
id = id.to_s
Expand Down Expand Up @@ -169,7 +172,7 @@ path.each do |id|
if XMLData.game =~ /^GS/
table_rows.push(["#{sstep}:", sttime, stime, wayto, id, title, location])
else
table_rows.push(["#{sstep}:", sttime, stime, wayto, id, title])
table_rows.push(["#{sstep}:", sttime, stime, wayto, id, title, location])
end
end
table = Terminal::Table.new(
Expand Down

0 comments on commit fc16f4b

Please sign in to comment.