When I used to go around a corner it walked around the corner, even when running was toggled on.
Right now I've changed this and it will now run around corners (only when running is toggled on of course), but the problem that occured is that I do not have 'running directions' for running around corners (needed in the player updating methods to make the whole walking/movement display correctly on a player's client).
Here are the directions that already existed (the walking ones are for players (not npcs), and for running they don't even exist for npcs in my revision I think):
Code:
//Walking directions (part of enum):
EAST(4), NORTH(6), NORTH_EAST(7), NORTH_WEST(5), SOUTH(1), SOUTH_EAST(2), SOUTH_WEST(0), WEST(3);
//Running directions (part of other enum):
EE(8), N_EE(10), N_WW(9), NN(13), NN_E(14), NN_EE(15), NN_W(12), NN_WW(11), S_EE(6), S_WW(5), SS(2), SS_E(3), SS_EE(4), SS_W(1), SS_WW(0), WW(7);
It might be handy to know that once a running direction is used, the walking direction is set to -1 (during the same game tick (every 600 ms)).
Some information about the running directions:
NN stands for Noth North which means one step was walked north and the second step was ran north (which looks like you've ran 2 steps north in-game).
NN_EE means that you moved up 2 places north, and 2 steps east (a diagonal run).
This is for Dementhium 639 for those who wanted to know. Thanks in advance.