aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kmath.cpp
diff options
context:
space:
mode:
authorOystein Eftevaag2009-02-21 10:23:36 +0000
committerOystein Eftevaag2009-02-21 10:23:36 +0000
commit25f7c371718f74eb26fed5bd66a803f220c89c3b (patch)
treee78250ba07d5d28ffecf1621421ab33061edf1e4 /engines/sci/engine/kmath.cpp
parent44ea7966108cf56df4a4eb3fd0b2b7df31d937e1 (diff)
downloadscummvm-rg350-25f7c371718f74eb26fed5bd66a803f220c89c3b.tar.gz
scummvm-rg350-25f7c371718f74eb26fed5bd66a803f220c89c3b.tar.bz2
scummvm-rg350-25f7c371718f74eb26fed5bd66a803f220c89c3b.zip
Wrapped the SCI engine in the Sci namespace.
svn-id: r38676
Diffstat (limited to 'engines/sci/engine/kmath.cpp')
-rw-r--r--engines/sci/engine/kmath.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/engine/kmath.cpp b/engines/sci/engine/kmath.cpp
index fb8a191337..85b3f3d020 100644
--- a/engines/sci/engine/kmath.cpp
+++ b/engines/sci/engine/kmath.cpp
@@ -25,6 +25,8 @@
#include "sci/include/engine.h"
+namespace Sci {
+
reg_t kRandom(state_t *s, int funct_nr, int argc, reg_t *argv) {
return make_reg(0, SKPV(0) + (int)((SKPV(1) + 1.0 - SKPV(0)) * (rand() / (RAND_MAX + 1.0))));
}
@@ -164,3 +166,5 @@ reg_t kTimesCot(state_t *s, int funct_nr, int argc, reg_t *argv) {
} else
return make_reg(0, (gint16)(tan(param * PI / 180.0) * scale));
}
+
+} // End of namespace Sci