From 089d0efe5b509f53c7d9c8b506e5b27522c57414 Mon Sep 17 00:00:00 2001 From: Jannik Vogel Date: Sat, 11 Jun 2016 23:55:43 +0200 Subject: [PATCH] Script: 0069 (Multiply Global Float by Global Float) --- rwengine/src/script/modules/VMModule.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rwengine/src/script/modules/VMModule.cpp b/rwengine/src/script/modules/VMModule.cpp index c7cc1b5e..5811273a 100644 --- a/rwengine/src/script/modules/VMModule.cpp +++ b/rwengine/src/script/modules/VMModule.cpp @@ -160,6 +160,11 @@ void vm_dec_global_float_by_global(const ScriptArguments& args) *args[0].globalReal -= *args[1].globalReal; } +void vm_mul_global_float_by_global(const ScriptArguments& args) +{ + *args[0].globalReal *= *args[1].globalReal; +} + void vm_global_int_to_global(const ScriptArguments& args) { *args[0].globalInteger = *args[1].globalInteger; @@ -275,6 +280,8 @@ VMModule::VMModule() bindFunction(0x060, vm_dec_global_int_by_global, 2, "Decrement Global Integer by Global Integer"); bindFunction(0x061, vm_dec_global_float_by_global, 2, "Decrement Global Float by Global Float"); + bindFunction(0x069, vm_mul_global_float_by_global, 2, "Multiply Global Float by Global Float"); + bindFunction(0x084, vm_global_int_to_global, 2, "Set Global Int To Global"); bindFunction(0x086, vm_global_float_to_global, 2, "Set Global Float To Global");