mob/var/frozen = 0
mob/var/speeding = 0
mob/PC/Move()
if(src.frozen)
return 0
if(src.wrapped)
return 0
if(src.donut_wrapped)
return 0
var/delay = src.speed
var/buku_speed = src.speed - 10
if(buku_speed < 0)
buku_speed = 0
if(src.speeding <= 10)
src.speeding = 10
..()
if(src.buku)
sleep((buku_speed))
src.speeding = 0
else
sleep(delay)
src.speeding = 0
else
return
Problem description:
In my game when i hosted it i never got lag, then i pwiped and when i rehosted it i got lag for some reason, and now it always lags, also when i open my game in dream maker and go to run, it also has the same exact lag, does this mean the problem is not "me" but something in the code?
The questions you should probably ask yourself first are the following.
What all am I saving?
How big are the save files?
What am I running now, that I wouldn't have been before the player wipe?
Although whatever the answers, chances are it's the code. Unless something has happened to your computer to slow it down, and thus slow down the games you host. The fact it does it in run also, though, makes it seem like something in your programming is causing lag. There are no players to cause it, after all.