summaryrefslogtreecommitdiff
path: root/src/hexen/m_misc.c
diff options
context:
space:
mode:
authorSimon Howard2008-09-16 00:07:46 +0000
committerSimon Howard2008-09-16 00:07:46 +0000
commit61e77600041ba534d824943320e7ddddb8e4f6ce (patch)
treefdaa4805bac62917f560644387ee43187dc08e05 /src/hexen/m_misc.c
parenta4d274e6419f89992dfef416ee9deadded533629 (diff)
downloadchocolate-doom-61e77600041ba534d824943320e7ddddb8e4f6ce.tar.gz
chocolate-doom-61e77600041ba534d824943320e7ddddb8e4f6ce.tar.bz2
chocolate-doom-61e77600041ba534d824943320e7ddddb8e4f6ce.zip
Clean up some warnings in the Hexen code.
Subversion-branch: /branches/raven-branch Subversion-revision: 1232
Diffstat (limited to 'src/hexen/m_misc.c')
-rw-r--r--src/hexen/m_misc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hexen/m_misc.c b/src/hexen/m_misc.c
index 9903e200..c493b23f 100644
--- a/src/hexen/m_misc.c
+++ b/src/hexen/m_misc.c
@@ -168,6 +168,12 @@ unsigned char rndtable[256] = {
int rndindex = 0;
int prndindex = 0;
+int P_Random(void)
+{
+ prndindex = (prndindex + 1) & 0xff;
+ return rndtable[prndindex];
+}
+
int M_Random(void)
{
rndindex = (rndindex + 1) & 0xff;