Commit Graph

92 Commits

Author SHA1 Message Date
Paul Gilbert
7ae8f8ce69 CGE: Decrease delay amounts to give better precision for frame execution 2011-08-10 18:38:06 +10:00
Paul Gilbert
9f8eb5a740 CGE: Re-added an explicit check in Sprite destructor against _sprite variable
The trouble is that the _sprite variable can currently be pointing to any registered sprite, and should only be freed in the destructor if it hasn't already been freed. Currently, this is best done by keeping track of whether the pointed to sprite has been already freed or not.
2011-08-06 16:55:39 +10:00
Paul Gilbert
63d49d3e1a CGE: Fix uninitialised value Valgrind warnings when saving sprite data 2011-08-06 13:46:44 +10:00
Paul Gilbert
0cb8b15cdf CGE: Fixed warning of shadowed variable 2011-08-06 13:30:36 +10:00
Paul Gilbert
388dadd56f CGE: Changed sprite shape list loading to exceed size specified by _shpCnt
This fixes the problem that was happening with the new English archive, which had a bigger shape list for one of the items in the first scene.
2011-08-06 13:16:18 +10:00
Strangerke
bbc51fa443 Merge branch 'soltys_wip2' of github.com:Strangerke/scummvm into soltys_wip2 2011-08-06 02:42:47 +02:00
Paul Gilbert
c1294b772f CGE: Added an assert to test out of bounds sprite shape access
The English version seems to expect a different number of shapes for some sprites, so it will need further work to determine how best to handle the differences.
2011-08-05 22:51:32 +10:00
Strangerke
7ea1f74759 CGE: Fix display of info text at the beginning of the game 2011-08-03 16:31:32 +02:00
Strangerke
55df4d0635 CGE: Rename some class members, various clean up 2011-07-31 00:52:35 +02:00
Strangerke
8b53899ca7 CGE: Remove Heart 2011-07-30 15:28:57 +02:00
Strangerke
5c7eb9a768 CGE: un-static-fy several variables, clean Heart class 2011-07-30 12:52:04 +02:00
Strangerke
7d5eb1ee63 CGE: Janitorial: remove trailing spaces 2011-07-28 15:35:12 +02:00
Strangerke
cf61919648 CGE: Replace 'no core' checks by asserts 2011-07-25 16:04:45 +02:00
Strangerke
82adc025ea CGE: Remove DrvInfo, rename some enums 2011-07-24 23:42:03 +02:00
Strangerke
c728a53148 CGE: Rename IOMode and SnCom enums 2011-07-23 14:31:39 +02:00
Strangerke
5d41ab8b5f CGE: Rename some more constants, remove some useless ones 2011-07-21 01:56:40 +02:00
Strangerke
420516b45e CGE: Rename Debug channel constants 2011-07-20 14:22:56 +02:00
Strangerke
9a148a27cc CGE: Remove macro farnew 2011-07-19 08:09:16 +02:00
Strangerke
8aa4f739af CGE: Add debug channels (WIP) 2011-07-18 18:05:57 +02:00
Paul Gilbert
50d313a547 CGE: Implement monochrome view mode button 2011-07-16 15:44:17 +10:00
Paul Gilbert
c3f3120194 CGE: Cleaned up room preview handling code and fixed memory leak 2011-07-16 15:17:18 +10:00
Paul Gilbert
c3c8032c42 CGE: Implemented Bitmap::xShow method 2011-07-13 20:42:30 +10:00
Paul Gilbert
9dc2cb87d9 CGE: Fix array size in Spike class constructor 2011-07-13 19:21:34 +10:00
Paul Gilbert
6c97190092 CGE: Fixed initialising of _shadow that was crashing the intro sequence 2011-07-13 19:18:23 +10:00
Strangerke
4d0f83babb CGE: Rename some constants 2011-07-13 08:44:58 +02:00
Paul Gilbert
11c9e64885 CGE: More bugfixes for memory leaks 2011-07-12 22:02:00 +10:00
Paul Gilbert
b6be90326d CGE: Fixed a memory leak with Sprite::setSeq 2011-07-12 21:41:11 +10:00
Paul Gilbert
daae033e01 CGE: Converted SprExt::_Seq to use dynamically allocated data 2011-07-12 21:16:23 +10:00
Strangerke
a524adcaee CGE: Suppress isVga() and memType() 2011-07-12 08:02:18 +02:00
Strangerke
dab96401ad CGE: Implement snGhost by splitting _m field in two. Some cleanup. 2011-07-12 07:24:20 +02:00
Paul Gilbert
9ba5e2b304 CGE: Reverted last commit due to extra memory leaks 2011-07-11 20:56:32 +10:00
Paul Gilbert
18077762d7 CGE: Standardised Sprite::seq on always allocating/freeing data 2011-07-11 20:37:37 +10:00
Paul Gilbert
f33ac85e79 CGE: Bugfixes for some crashes 2011-07-10 20:07:45 +10:00
Paul Gilbert
66c7777dfe CGE: Fix Valgrind identified errors 2011-07-10 18:17:40 +10:00
Paul Gilbert
32c8962d62 CGE: Removed some accidentally added debugging statements 2011-07-10 17:58:39 +10:00
Paul Gilbert
88c7b25e5b CGE: Fixed more free/delete[] mismatches identified by Valgrind 2011-07-10 17:56:29 +10:00
Paul Gilbert
1870f09d31 CGE: Fix several allocation mismatches and Valgrind issues 2011-07-10 14:51:22 +10:00
Paul Gilbert
319ff2ca49 CGE: Changed Sprite::contract to always destroy the sprite array 2011-07-10 10:11:50 +10:00
Paul Gilbert
0bbefbef90 CGE: Created PocLight class to encapsulate the LI sprite array 2011-07-10 10:10:51 +10:00
Paul Gilbert
47b17cd1ce CGE: Create Spike class to encapsulate the SP spite array 2011-07-10 10:07:35 +10:00
Paul Gilbert
622dc2d503 CGE: Created a CavLight class to encapsulate the PR sprite array 2011-07-10 10:04:41 +10:00
Paul Gilbert
817a52ed56 CGE: Created a HorizLine stub class to hold the HL sprite array 2011-07-10 09:57:19 +10:00
Strangerke
080d7cf7f0 CGE: Rename Mouse class 2011-07-08 08:22:25 +02:00
Strangerke
c86c62b288 CGE: Cleanup and renaming. Also move some static and global functions to CGEEngine. 2011-07-07 09:23:09 +02:00
Paul Gilbert
2997db0040 CGE: Minor bugfixes for game loading 2011-07-05 22:06:26 +10:00
Paul Gilbert
24fa551a71 CGE: Fix synchronising Sprite::_seqPtr to be a signed int16 2011-07-05 21:11:59 +10:00
Paul Gilbert
fe0ff3b2e9 CGE: Converted loadGame to use the ScummVM serialiser 2011-07-05 20:26:34 +10:00
Strangerke
c313d2cce8 CGE: Even more renaming (WIP) 2011-07-03 16:22:26 +02:00
Strangerke
4116189395 CGE: Some more renaming (WIP) 2011-07-03 11:28:22 +02:00
Paul Gilbert
dff8bd5474 CGE: Fix some memory leaks 2011-07-03 17:14:47 +10:00