From e40bd436af27fb46608c8d7cf1dcd1eff3b303cd Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 18 Feb 2023 12:54:16 +0100 Subject: [PATCH] racing:: fixed death in racing mode --- shmup.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shmup.cpp b/shmup.cpp index 924252d2..891eec6c 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -2773,6 +2773,8 @@ EX void turn(int delta) { } } + if(pc[i]->dead && racing::on) pc[i]->vel = 0; + if(pc[i]->dead && items[itOrbLife]) { multi::deaths[i]++; items[itOrbLife]--; @@ -2853,7 +2855,7 @@ EX void init() { } if(!safety) { - items[itOrbLife] = 3; + items[itOrbLife] = racing::on ? 0 : 3; if(!racing::on) addMessage(XLAT("Welcome to the Shoot'em Up mode!")); // addMessage(XLAT("F/;/Space/Enter/KP5 = fire, WASD/IJKL/Numpad = move"));