Phobos-developers / Phobos

Ares-compatible C&C Red Alert 2: Yuri's Revenge engine extension
GNU Lesser General Public License v3.0
300 stars 95 forks source link

[Minor]fixed bug that event 601 & 602 don't work properly in single player maps #1425

Open handama opened 1 week ago

handama commented 1 week ago

Trigger event 601 & 602 don't work properly in single player maps, while 604 & 605 do. The only distinction between them is what I've changed. You can test the result with this map: all01umd.zip

By the way, phobos's new events and actions use FindByIndex/Array->GetItem instead of FindByCountryIndex, which leads to inconsistency with the vanilla events and actions, for they use country index instead of house index. In single player map with whole new houses (like official RA2 campaign, they use BadGuy1, GoodGuy1 etc.), it begins with 14 by country index, but 0 by house index. This may make map editing and FA2 adaptation more complicated, so I want to know your opinions.

If you want to restore the vanilla habit, just modify in this way B17A4FF7777CB422DB89F0CE84E77E66

github-actions[bot] commented 1 week ago

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.