X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FScriptRunner.cpp;fp=src%2Fcommon%2FScriptRunner.cpp;h=c1022c4c1ed98c62047096ddc1c252ea273e9546;hb=238da3a706448d4c592460684e2a5a2c0eb81a04;hp=110b702b88a86aad29297759e5b666940d203da5;hpb=2ad47aa3758fe5d04ba1764f275a0fe30706d200;p=l2e.git diff --git a/src/common/ScriptRunner.cpp b/src/common/ScriptRunner.cpp index 110b702..c1022c4 100644 --- a/src/common/ScriptRunner.cpp +++ b/src/common/ScriptRunner.cpp @@ -93,6 +93,12 @@ void ScriptRunner::Exec(unsigned char code) { case Script::CODE_ADD_V1: vector1 += PopVector(); break; + case Script::CODE_MOD_I0: + integer0 %= PopInt(); + break; + case Script::CODE_MOD_I1: + integer1 %= PopInt(); + break; case Script::CODE_RAND_I0: integer0 = std::rand(); break;