X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FScriptRunner.cpp;h=c1022c4c1ed98c62047096ddc1c252ea273e9546;hb=77915e0186f4fc0788054eb34651c726b80d981c;hp=110b702b88a86aad29297759e5b666940d203da5;hpb=6e88a625710c7936f87b38ecf6094472f3a49f4f;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;