colobot/src
lolbot-iichan 0618174b2b
ENGINE: Fix operator < for COldModelManager::FileInfo
There was a rare case when Old Model Manager's model base object list was not working correctly.

Testcase:
CreateObject pos=10;0 dir=1.5 type=LeggedTrainer selectable=1 team=1
CreateObject pos=-10;0 dir=0.25 type=LeggedTrainer selectable=1 team=2

Expected result (after fix): models are displayed correctly
Actual result (before fix): some legs are missing, instead of them giant surfaces are floating high above the model

The reason was is failing to find the element that was just created and added with `m_models.find(FileInfo(fileName, mirrored, team))`
This happened for objects that had mirrored body parts (at least Ants, Wasps and all Legged units were affected) in case they were assigned to several teams.
Everyone were missing some legs since the `modelManager->AddModelReference("ant6.mod", true, rank, m_object->GetTeam())`
Wasps were also usually missing some wings.
2023-02-05 16:34:55 +03:00
..
CBot Fix compilation with gcc 2022-09-15 01:14:29 +02:00
app Fix for invisible batteries (code by melex750) (#1520) 2022-04-29 00:02:04 +02:00
common Fix for invisible batteries (code by melex750) (#1520) 2022-04-29 00:02:04 +02:00
graphics ENGINE: Fix operator < for COldModelManager::FileInfo 2023-02-05 16:34:55 +03:00
level Fix compilation with gcc 2022-09-15 01:14:29 +02:00
math Fix compilation with gcc 2022-09-15 01:14:29 +02:00
object goto: Remove unused BEAM_ACCURACY 2022-02-17 23:58:32 +01:00
physics Merge PR #1444 2022-01-29 17:16:57 +01:00
script Fix compilation with gcc 2022-09-15 01:14:29 +02:00
sound Update license headers 2021-09-11 15:53:59 +02:00
tools Update license headers 2021-09-11 15:53:59 +02:00
ui Merge pull request #1496 from rasmusgo/fix-spelling 2022-03-04 16:28:32 +01:00
CMakeLists.txt Fix for invisible batteries (code by melex750) (#1520) 2022-04-29 00:02:04 +02:00