Change Multiplier if RunInTown Enabled to Fix Stuttering.

This commit is contained in:
Trihedraf 2021-05-18 00:23:49 -07:00 committed by Anders Jenbo
commit f2186d4d10

View file

@ -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)