18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-27 21:45:16 +01:00
Files
maszyna/world
jerrrrycho be28108b91 fix(events): write memcompareex conditions back in the order they are read (#498)
The editor wrote a memory cell comparison as memcompareex <text> <op>
<value1> <op> <value2> <op>, without the pass word and with each value
before its operator. The parser and the sceneries use memcompareex
<pass> <op> <text> <op> <value1> <op> <value2>. A saved scenery read its
conditions shifted by one token, and the last value took the next word
of the event.

The writer now puts out the pass and the operator before each value.
The >= operator was written as >; it is written as >= now.

The text side of the conditions moves unchanged to the core file
world/eventconditions.cpp, so a unit test can check that what is
written reads back the same.
2026-11-25 05:41:50 +01:00
..