Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force units to load after unloading to a sea tile
Say we have two transports A and B next to the coast C, with a land unit in A. Consider the following orders for the land unit: 1. Unload from A to B->tile 2. Move from B->tile to C This sequence should not succeed because the unit should still be loaded after the first step. However, in practice the unit was not loaded after step 1, resulting in an invalid state that confused ORDER_MOVED. Do the same when bumping units after a transport is killed. The fix to that is obviously to load the unit after step 1. There is a catch though: this is (and has always been) done without considering action enablers. It might be possible to exploit this to bypass loading rules. Spotted by mu in LT78.
- Loading branch information