Fixed my mistake in names.

This commit is contained in:
savask 2011-08-11 00:19:30 +07:00
parent 15dab3daad
commit d31b140f8e

View File

@ -112,10 +112,10 @@ int run_stickman(float* playerp, UPDATE_FUNC_ARGS) {
float gx, gy, dl, dr; float gx, gy, dl, dr;
gx = (player[7] + player[15])/2 - gvy; gx = (playerp[7] + playerp[15])/2 - gvy;
gy = (player[8] + player[16])/2 + gvx; gy = (playerp[8] + playerp[16])/2 + gvx;
dl = pow(gx - player[7], 2) + pow(gy - player[8], 2); dl = pow(gx - playerp[7], 2) + pow(gy - playerp[8], 2);
dr = pow(gx - player[15], 2) + pow(gy - player[16], 2); dr = pow(gx - playerp[15], 2) + pow(gy - playerp[16], 2);
//Go left //Go left
if (((int)(playerp[0])&0x01) == 0x01) if (((int)(playerp[0])&0x01) == 0x01)