Fix spell properties incorrectly being capped at 8

Fixes  #3187
Revert #3021

destParam3 had been typed ad Direction, but is also sometimes used for
other values.
This commit is contained in:
Anders Jenbo 2021-10-25 20:17:21 +02:00
commit 96e1d5caba
4 changed files with 8 additions and 12 deletions

View file

@ -309,7 +309,7 @@ void LoadPlayer(LoadHelper &file, Player &player)
player.destAction = static_cast<action_id>(file.NextLE<int32_t>());
player.destParam1 = file.NextLE<int32_t>();
player.destParam2 = file.NextLE<int32_t>();
player.destParam3 = static_cast<Direction>(file.NextLE<int32_t>());
player.destParam3 = file.NextLE<int32_t>();
player.destParam4 = file.NextLE<int32_t>();
player.plrlevel = file.NextLE<uint32_t>();
player.position.tile.x = file.NextLE<int32_t>();