From c0b4ffc343e3aab4e027b91b83a139040f5796e8 Mon Sep 17 00:00:00 2001 From: ? Date: Wed, 27 Feb 2019 13:35:15 +0100 Subject: [PATCH] 3d:: fixed key names in shmup3, also playermoved changed correctly --- shmup.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shmup.cpp b/shmup.cpp index 923b8cb2..752e8f5d 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -78,8 +78,8 @@ namespace multi { }; vector playercmds_shmup3 = { - "move forward", "strafe right", "move backward", "strafe left", "rotate up", "rotate down", "rotate left", "rotate right", + "move forward", "strafe right", "move backward", "strafe left", "throw a knife", "face the pointer", "throw at the pointer", "drop Dead Orb", "center the map on me", "Orb power (target: mouse)", "Orb power (target: facing)" @@ -1580,7 +1580,8 @@ void movePlayer(monster *m, int delta) { } int b = 16*tableid[cpid]; - for(int i=0; i<(DIM == 3 ? 4 : 8); i++) if(actionspressed[b+i]) playermoved = true; + + for(int i=(DIM == 3 ? 4 : 0); i<8; i++) if(actionspressed[b+i]) playermoved = true; int jb = 4*tableid[cpid]; for(int i=0; i<4; i++) if(axespressed[jb+i]) playermoved = true;