From b49d6858c2c1835726376477e7d6e00d0eac4257 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 8 Jan 2016 15:00:38 +0100 Subject: [PATCH] =?UTF-8?q?Evitato=20un=20crash=20premendo=20pag=20su/gi?= =?UTF-8?q?=C3=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.cpp b/main.cpp index ceca6e9..3f4e83c 100644 --- a/main.cpp +++ b/main.cpp @@ -115,6 +115,9 @@ class Player : public Entity target = &map[x+1][y]; dir = 4; break; + default: //Pag su, pag giĆ¹, skippa + target = &map[x][y]; //Un po' hackerino, ma... + break; //Aggiungere gestione del caso che non sia una delle quattro frecce } //Muoviti e agisci!