summaryrefslogtreecommitdiff
path: root/src/strife/m_random.c
diff options
context:
space:
mode:
authorJames Haley2011-02-05 05:57:12 +0000
committerJames Haley2011-02-05 05:57:12 +0000
commitab144aa9d30a97f0c3a2d049d624c868aaba3af7 (patch)
tree46eab4e49448d748536f21cea0f81908fa01032d /src/strife/m_random.c
parente81e9d80c45f6ec0698adfbc77b10e37df8c4c26 (diff)
downloadchocolate-doom-ab144aa9d30a97f0c3a2d049d624c868aaba3af7.tar.gz
chocolate-doom-ab144aa9d30a97f0c3a2d049d624c868aaba3af7.tar.bz2
chocolate-doom-ab144aa9d30a97f0c3a2d049d624c868aaba3af7.zip
Documented most of the questflags. Misc fixes: Removed "is turbo!"
message, PST_REBORN set in G_DoLoadLevel if players.health <= 0, M_ClearRandom doesn't seed rndindex with time(), A_Chase doesn't check for target->health <= 0 when decrementing actor->threshold, and A_AcolyteSpecial fixed - ALL blue acolytes must be dead, not just one. Subversion-branch: /branches/strife-branch Subversion-revision: 2248
Diffstat (limited to 'src/strife/m_random.c')
-rw-r--r--src/strife/m_random.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/strife/m_random.c b/src/strife/m_random.c
index 31cdf1b2..b7e6aa05 100644
--- a/src/strife/m_random.c
+++ b/src/strife/m_random.c
@@ -72,13 +72,15 @@ int M_Random (void)
return rndtable[rndindex];
}
+//
+// M_ClearRandom
+//
+// haleyjd 20110204 [STRIFE]: No "seeding" of M_Random index
+//
void M_ClearRandom (void)
{
prndindex = 0;
-
- // Seed the M_Random counter from the system time
-
- rndindex = time(NULL) & 0xff;
+ rndindex = 0;
}