From bca1e7a3cca62149d245f82836391a800d171c53 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Sat, 24 May 2014 16:47:07 +0200 Subject: [PATCH] play drop sound when exiting edit mode ...and the player "drops" back into the map (fixes issue #55) --- source/src/editing.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/src/editing.cpp b/source/src/editing.cpp index 69d17f53..9e8d35b5 100644 --- a/source/src/editing.cpp +++ b/source/src/editing.cpp @@ -35,7 +35,9 @@ void toggleedit(bool force) if(!force && !editmode && !allowedittoggle()) return; // not in most multiplayer modes if(!(editmode = !editmode)) { + float oldz = player1->o.z; entinmap(player1); // find spawn closest to current floating pos + player1->timeinair = player1->o.z == oldz ? 0: 300; } else {