summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2013-11-18 16:20:35 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2013-11-18 16:20:35 +0100
commit423c99862f5057b13bd2f8cb277fb04d7c6222f3 (patch)
tree0602e1ea1be462f50eeb70b79f2d6563acd06cec /global.c
parent0d9a7c969269fc4d0b94b732136bff70903116ba (diff)
downloadfx-maze-423c99862f5057b13bd2f8cb277fb04d7c6222f3.tar.gz
fx-maze-423c99862f5057b13bd2f8cb277fb04d7c6222f3.zip
improved error feedback
Diffstat (limited to 'global.c')
-rw-r--r--global.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/global.c b/global.c
index 083f7d8..10dd7db 100644
--- a/global.c
+++ b/global.c
@@ -99,10 +99,12 @@ uint solids[MAPSIZE][MAPSIZE] = {0}; // here you can check whether you can walk
// nice idea would be a hidden wall you can walk through to access a secret room... hmmm
// something happened that should not happen
-void error(void)
+void error(char * msg)
{
+ int k;
+
clear_vram();
PrintMini(1,1, "ERROR!");
+ PrintMini(1, 10, msg);
display_vram();
- while(1);
}