comparison mm7_3.cpp @ 433:0eaed3e0d75f

Walk speed x12 (debugging purposes)
author Nomad
date Sun, 24 Feb 2013 01:08:02 +0200
parents 8c45cac1c5e1
children 137c59c3dbc4
comparison
equal deleted inserted replaced
432:870358928460 433:0eaed3e0d75f
3405 3405
3406 float sin_y = sinf(2 * 3.141592653589 * _angle_y / 2048.0), 3406 float sin_y = sinf(2 * 3.141592653589 * _angle_y / 2048.0),
3407 cos_y = cosf(2 * 3.141592653589 * _angle_y / 2048.0); 3407 cos_y = cosf(2 * 3.141592653589 * _angle_y / 2048.0);
3408 3408
3409 int dx = cos_y * pParty->uWalkSpeed * fWalkSpeedMultiplier; 3409 int dx = cos_y * pParty->uWalkSpeed * fWalkSpeedMultiplier;
3410 v2 += dx; 3410 v2 += dx * 12;
3411 3411
3412 int dy = sin_y * pParty->uWalkSpeed * fWalkSpeedMultiplier; 3412 int dy = sin_y * pParty->uWalkSpeed * fWalkSpeedMultiplier;
3413 v1 += dy; 3413 v1 += dy * 12;
3414 3414
3415 v128 = v1; 3415 v128 = v1;
3416 v124 = 1; 3416 v124 = 1;
3417 } 3417 }
3418 break; 3418 break;