Move generic helpers out of miniwin
This commit is contained in:
parent
4c1108c1da
commit
08aa6a860a
44 changed files with 132 additions and 179 deletions
|
|
@ -18,7 +18,7 @@ void track_process()
|
|||
return;
|
||||
|
||||
if (cursmx != plr[myplr]._ptargx || cursmy != plr[myplr]._ptargy) {
|
||||
DWORD tick = GetTickCount();
|
||||
DWORD tick = SDL_GetTicks();
|
||||
if ((int)(tick - sgdwLastWalk) >= 300) {
|
||||
sgdwLastWalk = tick;
|
||||
NetSendCmdLoc(TRUE, CMD_WALKXY, cursmx, cursmy);
|
||||
|
|
@ -36,7 +36,7 @@ void track_repeat_walk(BOOL rep)
|
|||
sgbIsWalking = rep;
|
||||
if (rep) {
|
||||
sgbIsScrolling = 0;
|
||||
sgdwLastWalk = GetTickCount() - 50;
|
||||
sgdwLastWalk = SDL_GetTicks() - 50;
|
||||
NetSendCmdLoc(TRUE, CMD_WALKXY, cursmx, cursmy);
|
||||
} else if (sgbIsScrolling) {
|
||||
sgbIsScrolling = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue