racing:: in 3D, you now reflect off blocking walls

This commit is contained in:
Zeno Rogue 2019-10-05 15:38:16 +02:00
parent a023003560
commit 7f9ffe14af
1 changed files with 4 additions and 1 deletions

View File

@ -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) {