@@ -285,7 +285,7 @@ void Update(float dt) {
285285
286286 int cnt = 0 ;
287287 while (ThreadTable[cnt]) {
288- RunThread (ThreadTable[cnt++]);
288+ RunThread (ThreadTable[cnt++], dt );
289289 }
290290
291291 cnt = 0 ;
@@ -437,7 +437,7 @@ void ControlThreadGroup(ThreadGroupControlType controlType, uint32_t groupId) {
437437 }
438438}
439439
440- void RunThread (Sc3VmThread* thread) {
440+ void RunThread (Sc3VmThread* thread, float dt ) {
441441 uint8_t * scrVal;
442442 uint32_t opcodeGrp;
443443 uint32_t opcode;
@@ -490,13 +490,13 @@ void RunThread(Sc3VmThread* thread) {
490490 scriptIp, opcodeGrp1, opcode, thread->ScriptBufferId );
491491
492492 if (opcodeGrp1 == 0x10 ) {
493- OpcodeTableUser1[opcode](thread);
493+ OpcodeTableUser1[opcode](thread, dt );
494494 } else if (opcodeGrp1 == 0x02 ) {
495- OpcodeTableGraph3D[opcode](thread);
495+ OpcodeTableGraph3D[opcode](thread, dt );
496496 } else if (opcodeGrp1 == 0x01 ) {
497- OpcodeTableGraph[opcode](thread);
497+ OpcodeTableGraph[opcode](thread, dt );
498498 } else if (!opcodeGrp1) {
499- OpcodeTableSystem[opcode](thread);
499+ OpcodeTableSystem[opcode](thread, dt );
500500 } else {
501501 ImpLog (LogLevel::Error, LogChannel::VM ,
502502 " Thread CRASH! Unknown opcode. Attempting recovery. Address: "
0 commit comments