From 6f5bdbfbddde1845072c24207937103b15fd2394 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Sun, 12 Nov 2017 15:35:37 +0100 Subject: Fixes extra line being added to generated maps. --- src/shim_database.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/shim_database.erl') diff --git a/src/shim_database.erl b/src/shim_database.erl index 8e7c383..f1abd8b 100644 --- a/src/shim_database.erl +++ b/src/shim_database.erl @@ -2,9 +2,13 @@ -export([fetch/2]). fetch(battlemaps_db, Object_ID) -> - io:format("~nGenerating new Battlemap ~p... ~n", [Object_ID]), Width = (rand:uniform(54) + 10), Height = (rand:uniform(54) + 10), + io:format + ( + "~nGenerating new Battlemap ~p of size (~p, ~p)...~n", + [Object_ID, Width, Height] + ), {ok, { shim_battlemap_battlemap:generate(Width, Height), -- cgit v1.2.3-70-g09d2