[Fix] Why are we reversing while we are already stopped dead?
This commit is contained in:
parent
69476744b8
commit
7b72a35b9e
@ -19,7 +19,7 @@ CFLAGS = $(CLUA) $(CSDL) $(CXML) $(CTTF) $(CGL) $(VERSION)
|
|||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
CFLAGS += -W -Wall -g3 -DDEBUG -DLUA_USE_APICHECK
|
CFLAGS += -W -Wall -g3 -DDEBUG -DLUA_USE_APICHECK
|
||||||
else
|
else
|
||||||
CFLAGS += -O2
|
CFLAGS += -O2 -funroll-loops
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LDLUA = ../lib/lua/liblua.a
|
LDLUA = ../lib/lua/liblua.a
|
||||||
|
@ -740,7 +740,7 @@ void player_think(Pilot* player) {
|
|||||||
if(player_turn > 1.) player_turn = 1.;
|
if(player_turn > 1.) player_turn = 1.;
|
||||||
else if(player_turn < -1.) player_turn = -1.;
|
else if(player_turn < -1.) player_turn = -1.;
|
||||||
}
|
}
|
||||||
else if(player_isFlag(PLAYER_REVERSE)) {
|
else if(player_isFlag(PLAYER_REVERSE) && (VMOD(player->solid->vel) > 0.)) {
|
||||||
diff = angle_diff(player->solid->dir, VANGLE(player->solid->vel));
|
diff = angle_diff(player->solid->dir, VANGLE(player->solid->vel));
|
||||||
player_turn = 10.*diff;
|
player_turn = 10.*diff;
|
||||||
if(player_turn >= 0.) player_turn = 1.;
|
if(player_turn >= 0.) player_turn = 1.;
|
||||||
|
Loading…
Reference in New Issue
Block a user