MCPcopy Create free account
hub / github.com/assaultcube/AC / rewinddemo

Function rewinddemo

source/src/client.cpp:735–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733COMMANDN(setmr, setminutesremaining, "s");
734
735void rewinddemo(char *seconds)
736{
737 int gamemillis = gametimecurrent+(lastmillis-lastgametimeupdate);
738 if(*seconds) shiftgametime(gamemillis - ATOI(seconds) * 1000);
739}
740COMMANDN(rewind, rewinddemo, "s");
741
742

Callers

nothing calls this directly

Calls 1

shiftgametimeFunction · 0.85

Tested by

no test coverage detected