play drop sound when exiting edit mode

...and the player "drops" back into the map
(fixes issue #55)
This commit is contained in:
ac-stef
2014-05-24 16:47:07 +02:00
parent a0286d2b3f
commit bca1e7a3cc
+2
View File
@@ -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
{