mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-12 19:06:09 -10:00
Eli2's minimal timer fix patch(es) from http://www.hard-light.net/forums/index.php?topic=79070.0
This commit is contained in:
1 parent
76f8d96721
commit
e98ff51535
3 files changed
+24
-3
No files matched your search
+4
-2
@@ -12217,9 +12217,11 @@ ADE_FUNC(startMission, l_Mission, "[Filename or MISSION_* enumeration, Briefing
|
||||
ADE_FUNC(getMissionTime, l_Mission, NULL, "Game time in seconds since the mission was started; is affected by time compression", "number", "Mission time (seconds), or 0 if game is not in a mission")
|
||||
{
|
||||
if(!(Game_mode & GM_IN_MISSION))
|
||||
return ade_set_error(L, "f", 0.0f);
|
||||
return ade_set_error(L, "d", 0.0f);
|
||||
|
||||
return ade_set_args(L, "x", Missiontime);
|
||||
double time = (double)timestamp() / 1000.0;
|
||||
|
||||
return ade_set_args(L, "d", time);
|
||||
}
|
||||
|
||||
//WMC - These are in freespace.cpp
|
||||
|
||||
Reference in new issue
Block a user