From 7f9ffe14afb8527588625b5d6710639bf29f4320 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 5 Oct 2019 15:38:16 +0200 Subject: [PATCH] racing:: in 3D, you now reflect off blocking walls --- shmup.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shmup.cpp b/shmup.cpp index f691a895..3f6a4fb4 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -1287,7 +1287,10 @@ void movePlayer(monster *m, int delta) { } #if CAP_RACING - if(!go && stdracing) m->vel = 0; + if(!go && stdracing) { + if(GDIM == 3) m->vel = max(m->vel * -.5 - 0.1, 0.); + else m->vel = 0; + } #endif if(shotkey && canmove && curtime >= m->nextshot) {