use threshold of cos(67.5) to allow two directions to be pressed simultaneously (eg: down+right) (patch by KruLLo)

This commit is contained in:
dborth 2012-03-18 15:52:08 +00:00
parent 53265428d0
commit 2dd5889c1a

View File

@ -318,7 +318,7 @@ u32 StandardMovement(unsigned short chan)
{
u32 J = 0;
double angle;
static const double THRES = 1.0 / sqrt(2.0);
static const double THRES = cos(67.5);
s8 pad_x = userInput[chan].pad.stickX;
s8 pad_y = userInput[chan].pad.stickY;