1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00
Commit Graph

12 Commits

Author SHA1 Message Date
Ted John
ebd12bde83 Fix #4537: Park with object containing no images fails to load
Allow gfx_object_allocate_images to take 0 images and return INVALID_IMAGE_ID which will safely not be freed.
2016-10-05 21:47:02 +01:00
Ted John
305e6184f8 Try merging free image lists if failed to allocate one 2016-10-02 01:10:43 +01:00
Ted John
ff34967e9b Ensure all images are freed, fix leak 2016-10-02 00:44:07 +01:00
Ted John
964cf66f6b Zero g1 elements when freeing images
This is to help diagnose issues where we are drawing invalid sprites as well as general cleanliness
2016-07-16 18:08:58 +01:00
duncanspumpkin
83fa818190 Use the correct count to work out if regions will overlap. Fix #4114 2016-07-16 18:07:13 +01:00
Ted John
be4668ee3a Fix #4108: Assertion an crash at startup 2016-07-16 15:33:26 +01:00
Ted John
c123673d6f Merge pull request #4106 from IntelOrca/improve-assertions
Improve guard assertions so that they display the location of where the guard was and also allow a dump file to be created on abort.
2016-07-16 15:12:30 +01:00
Ted John
5f41e3a0eb add function and line info to guards 2016-07-16 14:17:36 +01:00
duncanspumpkin
5426b655fe Try combine _freelists when freeing to reduce chance of running out of images. 2016-07-16 14:12:15 +01:00
Ted John
4e259920b1 fix and detect freeing invalid image lists 2016-07-08 22:58:38 +01:00
Ted John
52928e1e08 protect objects against invalid allocation ids 2016-07-08 22:58:38 +01:00
Ted John
3bfa747ce4 implement a proper image list allocation 2016-07-08 22:58:38 +01:00