From fc1fdbd1f543e51d9442ebd286efbf0cf804fc45 Mon Sep 17 00:00:00 2001 From: black Date: Mon, 5 Jun 2006 22:45:04 +0000 Subject: [PATCH] Prepare the renaming of timer.* to time.* git-svn-id: svn://svn.icculus.org/nexuiz/branches/smenu@1506 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/menuqc/base/timer.qc | 24 +++++++++++++----------- data/menuqc/base/timer.qh | 16 +++++++++------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/data/menuqc/base/timer.qc b/data/menuqc/base/timer.qc index 6886acbc1..2b7098bf0 100644 --- a/data/menuqc/base/timer.qc +++ b/data/menuqc/base/timer.qc @@ -1,22 +1,24 @@ -// NG-Menu -// base/timer.qc +// xMenu +// * NG-Menu +// base/time.qc +// * base/timer.qc -float _Timer_LastTime; +float _Time_Last; -void() Timer_Init = +void() Time_Init = { - Timer_Time = gettime(); - Timer_Delta = 0.0; + Time_Current = gettime(); + Time_Delta = 0.0; }; -void() Timer_Update = +void() Time_Update = { - _Timer_LastTime = Timer_Time; - Timer_Time = gettime(); - Timer_Delta = Timer_Time - _Timer_LastTime; + _Time_Last = Time_Current; + Time_Time = gettime(); + Time_Delta = Time_Current - _Time_Last; }; -void() Timer_Quit = +void() Time_Quit = { }; diff --git a/data/menuqc/base/timer.qh b/data/menuqc/base/timer.qh index 52e631a00..af040554e 100644 --- a/data/menuqc/base/timer.qh +++ b/data/menuqc/base/timer.qh @@ -1,11 +1,13 @@ -// NG-Menu -// base/timer.qh +// xMenu +// * NG-Menu +// base/time.qh +// * base/timer.qh // timer -float Timer_Time; // current time -float Timer_Delta; // time difference to the last cycle +float Time_Current; // current time +float Time_Delta; // time difference to the last cycle -void() Timer_Init; -void() Timer_Update; -void() Timer_Quit; +void() Time_Init; +void() Time_Update; +void() Time_Quit; -- 2.39.2