Nyerguds / MobiusMapEditor

Enhanced version of the C&C Tiberian Dawn and Red Alert map editor based on the source code released by Electronic Arts.
Other
23 stars 3 forks source link

Attack Tarcom is set to 0 when loading a map #3

Closed FlaminWrap closed 1 year ago

FlaminWrap commented 1 year ago

How to reproduce

Nyerguds commented 1 year ago

It appears that the value does not actually get cleared; it just gets parsed incorrectly, as byte type. Your example just happens to end up as 0 when parsed to byte since it's exactly divisible by 256.

Seems this parsing is a leftover of the original editor code. The fix is in the pipeline for the next release.