This commit is contained in:
aurhat
2017-02-18 22:40:07 +01:00
parent 7ca26bc458
commit 4d2d326136
12 changed files with 21 additions and 17 deletions
+4 -4
View File
@@ -312,7 +312,7 @@ void pm(char *text)
trimtrailingwhitespace(text);
addmsg(SV_TEXTPRIVATE, "ris", cn, text);
conoutf("to %s:\f9 %s", colorname(to), highlight(text));
conoutf("to %s (PM):\f9 %s", colorname(to), highlight(text));
}
COMMAND(pm, "c");
@@ -841,12 +841,12 @@ void listdemos()
void shiftgametime(int newmillis)
{
newmillis = max(0, newmillis);
int gamemillis = gametimecurrent + (lastmillis - lastgametimeupdate);
if(!watchingdemo) { conoutf("You have to be watching a demo to change game time"); return; }
newmillis = max(0, newmillis);
if(newmillis > gametimemaximum) { conoutf("Invalid time specified"); return; }
int gamemillis = gametimecurrent + (lastmillis - lastgametimeupdate);
if(newmillis < gamemillis)
{
// if rewinding