Change Multiplier if RunInTown Enabled to Fix Stuttering.
This commit is contained in:
parent
417a3f124a
commit
f2186d4d10
1 changed files with 4 additions and 1 deletions
|
|
@ -34,7 +34,10 @@ void track_process()
|
|||
const Point target = player.GetTargetPosition();
|
||||
if (cursmx != target.x || cursmy != target.y) {
|
||||
Uint32 tick = SDL_GetTicks();
|
||||
if ((int)(tick - sgdwLastWalk) >= gnTickDelay * 6) {
|
||||
int TickMultiplier = 6;
|
||||
if (currlevel == 0 && sgGameInitInfo.bRunInTown)
|
||||
TickMultiplier = 3;
|
||||
if ((int)(tick - sgdwLastWalk) >= gnTickDelay * TickMultiplier) {
|
||||
sgdwLastWalk = tick;
|
||||
NetSendCmdLoc(myplr, true, CMD_WALKXY, { cursmx, cursmy });
|
||||
if (!sgbIsScrolling)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue