Decompiled Miria Script

UltimateHW

First time out of the vault
I've been comparing a decompiled version of the mcMiria script included in the Miria mod with the non-decompiled, but still source-code version that is also included in the mod. I've noticed a bunch of nonsensical statements such as the following:
Code:
if ((4 == 161) or (4 == 162) or (4 == 261)) then begin
I was wondering if anyone could shed some light on why this happens? I've tried using Noid's as well as TeamX's decompilers with the same results.

Thanks!
 
Probably an attempt at reading a variable gone wrong.

Looks like someone mistook a constant for a macro.
 
It is not a real bug.
This code is a part of some big macro(like GetReaction or CheckKarma)
In such macro there are many "constant" IF statement.
This "constant" is defined by coder at beginning of script.

It is a easy way to write new script, just copy a template (mapper/scripts/generic/ folder) and change some constants.
 
Back
Top