if (pplayer->input.fire == UP)
{
- pplayer->xm = pplayer->xm + WALK_SPEED;
+ pplayer->xm = pplayer->xm + RUN_SPEED;
- if (pplayer->xm > MAX_WALK_XM)
- pplayer->xm = MAX_WALK_XM;
+ if (pplayer->xm > MAX_RUN_XM)
+ pplayer->xm = MAX_RUN_XM;
}
else if ( pplayer->input.fire == DOWN)
{
- pplayer->xm = pplayer->xm + RUN_SPEED;
+ pplayer->xm = pplayer->xm + WALK_SPEED;
- if (pplayer->xm > MAX_RUN_XM)
- pplayer->xm = MAX_RUN_XM;
+ if (pplayer->xm > MAX_WALK_XM)
+ pplayer->xm = MAX_WALK_XM;
}
}
else
if (pplayer->input.fire == UP)
{
- pplayer->xm = pplayer->xm - WALK_SPEED;
+ pplayer->xm = pplayer->xm - RUN_SPEED;
- if (pplayer->xm < -MAX_WALK_XM)
- pplayer->xm = -MAX_WALK_XM;
+ if (pplayer->xm < -MAX_RUN_XM)
+ pplayer->xm = -MAX_RUN_XM;
}
else if (pplayer->input.fire == DOWN)
{
- pplayer->xm = pplayer->xm - RUN_SPEED;
+ pplayer->xm = pplayer->xm - WALK_SPEED;
- if (pplayer->xm < -MAX_RUN_XM)
- pplayer->xm = -MAX_RUN_XM;
+ if (pplayer->xm < -MAX_WALK_XM)
+ pplayer->xm = -MAX_WALK_XM;
}
}
else