Commit Graph

100 Commits

Author SHA1 Message Date
David Turner
39de104c5c TOON: Fix Uninitialized Memory Read During Cursor Animation on Load.
This was mainly due to _mouseX, which along with the associated variables was not defined until the first mouse event. This was detected by Valgrind.

svn-id: r55402
2011-01-22 01:07:14 +00:00
David Turner
e8e6df9106 TOON: Fix for Memory Leak during Savegame Loading.
svn-id: r55401
2011-01-22 00:00:30 +00:00
David Turner
cb7eb365ae TOON: Fix Memory Leak when opening Inventory.
svn-id: r55400
2011-01-21 23:43:02 +00:00
Sylvain Dupont
f9422fb726 TOON: Bug #3153351 fixed with disappearing Drew
Bug #3153351: "TOON: Drew vanishes when fixing churnatron"
Made sure the scale is never zero.

svn-id: r55399
2011-01-21 23:24:17 +00:00
Sylvain Dupont
8cacde95e7 TOON: Always reset video playback to lowRes when loading new movie
svn-id: r55398
2011-01-21 22:56:22 +00:00
Sylvain Dupont
5469aa1687 TOON: Fix double declaration warning
Thanks to clone2727 ;)

svn-id: r55396
2011-01-21 22:04:41 +00:00
Sylvain Dupont
d5cb146f4c TOON: Fix all the glitches in smacker video playback
Handle manually 2x scaling when it is needed now.

svn-id: r55393
2011-01-21 20:26:25 +00:00
Arnaud Boutonné
4a94eba80a TOON: Add mapping for upper 'ç' and for plenking, both used in french version
svn-id: r55057
2010-12-28 21:19:31 +00:00
Sylvain Dupont
ab01c8e5fc TOON: Fixed memory corruption in several rooms
Some mask line drawings were writing outside the buffer.

svn-id: r55055
2010-12-28 13:13:55 +00:00
Sylvain Dupont
bccf4606c9 TOON: Removed useless confusing code in conversation process part
svn-id: r55054
2010-12-28 13:11:17 +00:00
Sylvain Dupont
1b8678d5de TOON: Path finding bug fixes
Allows Flux to walk close to Drew if really needed to prevent total path block.
Prevents path finding if the character is out of the screen

svn-id: r55051
2010-12-27 21:56:52 +00:00
Sylvain Dupont
f9409fc7d5 TOON: Fixed Bug #3124527 with Dungeon freeze
Bug #3089974: "TOON: Game freezes in act 2 when thrown to the prison"

Wrong pointer increment in conversation process code.

svn-id: r55047
2010-12-26 20:14:04 +00:00
Sylvain Dupont
63e58baae1 TOON: Fix problem when exiting the king cave
svn-id: r55042
2010-12-26 14:32:38 +00:00
Matthew Hoops
375f32fbe9 VIDEO: Make VideoDecoder::decodeNextFrame() return a const Surface pointer
svn-id: r54927
2010-12-16 01:35:13 +00:00
Max Horn
6edc86a19b DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine
svn-id: r54815
2010-12-07 18:54:21 +00:00
Torbjörn Andersson
6b8a3dba70 TOON: Attempt to fix crash when Bricabrac puts on his glasses
This was a regression in r54223, and it's the most direct fix I can
think of. The problem seems to be that sys_Cmd_Remove_Scene_Anim()
clears the character's _animationInstance while character::playAnim()
is waiting "for the character to be ready".

My fix was to treat _animationInstance NULL as another sign that the
wait is over, but maybe the real fix is for sys_Cmd_Remove_Scene_Anim()
to do more than just clear the variable, e.g. stop the script or
something like that?

svn-id: r54549
2010-11-28 20:53:57 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Max Horn
a72de47d5d COMMON: Cleanup EventRecorder
svn-id: r54355
2010-11-19 00:38:17 +00:00
Sylvain Dupont
db51fb3386 TOON: Fix free/malloc mismatch
svn-id: r54224
2010-11-13 02:59:46 +00:00
Sylvain Dupont
a373bd4a53 TOON: Fix more memory leaks
Mainly leaks in audio and animations

svn-id: r54223
2010-11-13 02:44:34 +00:00
Sylvain Dupont
420c2c9ff2 TOON: Fixed menu music leak
svn-id: r54222
2010-11-13 01:37:37 +00:00
Sylvain Dupont
698f4c2b45 TOON: Walk animation improved
Smoothing direction changes. Still needs to be polished though.

svn-id: r54221
2010-11-13 01:15:37 +00:00
Sylvain Dupont
8a4cc14b1a TOON: Fix audio crashs and more memory leaks
svn-id: r54219
2010-11-12 22:31:04 +00:00
David Turner
52ecbd4305 TOON: Even more corrections to close memory leaks.
These corrections close a number of leaks in the Toon engine reported by running Valgrind with --leak-check=full option, but a few still remain.

svn-id: r54185
2010-11-10 06:22:18 +00:00
David Turner
a74b8ad67f TOON: More corrections to close memory leaks.
These corrections close a number of leaks in the Toon engine reported by running Valgrind with --leak-check=full option, but a significant number still remain.

svn-id: r54176
2010-11-09 23:57:56 +00:00
David Turner
5d30eeea95 TOON: Further corrections to close memory leaks.
These corrections close a number of leaks in the Toon engine reported by running Valgrind with --leak-check=full option, but a significant number still remain.

svn-id: r54136
2010-11-08 03:14:32 +00:00
Johannes Schickel
170b21c2ce TOON: Fix mismatching new/delete[] on _hotspots.
svn-id: r54130
2010-11-07 21:25:32 +00:00
Johannes Schickel
7c66cae3de TOON: Cleanup.
svn-id: r54129
2010-11-07 21:22:16 +00:00
Johannes Schickel
efc2808926 TOON: Fix debug console by implementing getDebugger.
svn-id: r54128
2010-11-07 21:21:55 +00:00
David Turner
4acad22d6e TOON: Corrections to close some memory leaks.
These corrections close a number of leaks in the Toon engine reported by running Valgrind with --leak-check=full option.

svn-id: r54127
2010-11-07 21:08:46 +00:00
David Turner
279a760c5a TOON: Added basic debugging console to engine
Since Toon uses Debug Channels, this allows for the interactive setting of debugflags as well as providing a base for adding further debugging commands.
However, the hotkey for this is currently disabled as it causes a segfault. Not sure why.

svn-id: r54123
2010-11-07 17:18:59 +00:00
Max Horn
18d40017e8 ENGINES: Unify code layout of all ADParams instances
svn-id: r54105
2010-11-07 01:01:18 +00:00
Sylvain Dupont
1e59b9dd2c TOON: Fix sound effect archive destroy
Variable not initialized. Crashed when no sound effects were present in the room
(Bug fixed thanks to Thomas)

svn-id: r54076
2010-11-04 22:12:16 +00:00
Sylvain Dupont
9a704e51c1 TOON: Fix ambient audio destroy in chapter 2
(Thanks to Thomas)

svn-id: r54075
2010-11-04 22:06:22 +00:00
Max Horn
a7248a0601 ENGINES: Replace many printfs by warning/debug/debugN
svn-id: r54031
2010-11-01 21:37:47 +00:00
Max Horn
9a350f4398 ENGINES: Get rid of some (f)printfs
svn-id: r54011
2010-11-01 16:04:47 +00:00
Max Horn
e27b05ef35 COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.

The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.

svn-id: r54004
2010-11-01 16:02:28 +00:00
Sylvain Dupont
ecd3e29fe0 TOON: Stops all Sfx/voice when exiting a room
Caused crashs when exiting when a sfx or voice was still playing
Bug found by Thomas

svn-id: r53928
2010-10-29 22:00:31 +00:00
Sylvain Dupont
ec08328f0c TOON: Fixed some animation glitches for small sprites
Fixed problems when the uncompressed is smaller than compressed size
Bug fix sent by Thomas
It also fixes Bug fix #3086004 : "TOON: Lights above WACME doors incorrect"

svn-id: r53908
2010-10-28 21:39:46 +00:00
Sylvain Dupont
fc1e70eb01 TOON: Fix SetMousePos wrong position
When the game was in a close up, cmd_Set_Mouse_Pos was setting
a out-of-window mouse position.

svn-id: r53866
2010-10-26 22:26:13 +00:00
Sylvain Dupont
66da19552e TOON: Implement cmd_Set_Anim_Scale_Size
Used to rescale the knight animation when the knight 
is moved around the room in Chapter 2

svn-id: r53865
2010-10-26 22:18:14 +00:00
Sylvain Dupont
c509752da1 TOON: Fixed some Z-order issues for animations
Happened when the flag 0x20 was set in Init_Scene_Anim
It says to use the background layer system

svn-id: r53836
2010-10-25 22:41:34 +00:00
Sylvain Dupont
7ab1e368e8 TOON: Implemented Ambient SFX
For example used in arcade playing sounds, lullaby music,
toilet game win sound effects...

svn-id: r53834
2010-10-25 22:15:47 +00:00
Sylvain Dupont
3fb739f90a TOON: Fix conversation freeze in the beginning of chapter 2
A missing talk animation was started

svn-id: r53723
2010-10-22 23:35:56 +00:00
Sylvain Dupont
4b98404d7b TOON: Close correctly sound packs
svn-id: r53720
2010-10-22 23:29:52 +00:00
Sylvain Dupont
9cbb0d5579 TOON: More talk animation fixes
There was a conflict between the idle animation and the talk animation
in some cases (showing the chain anim & idle anim in the arcade)

svn-id: r53713
2010-10-22 21:42:48 +00:00
Sylvain Dupont
63862026bc TOON: Fix for a small typo in talking state
svn-id: r53710
2010-10-22 21:21:57 +00:00
Sylvain Dupont
66e3815963 TOON: Fixed Bug #3089974 and #3086015
Bug #3089974: "TOON: Two Drews when exiting King's bedroom"
Bug #3086015: "TOON: Woof doesn't idle correctly"

Most talking animation bugs are fixed with this.
The mouse is now hidden when entering a room.

svn-id: r53706
2010-10-22 20:53:25 +00:00
Sylvain Dupont
4d28de5623 TOON: Prevent quick load/save when it's not currently possible
svn-id: r53550
2010-10-16 22:07:09 +00:00
Sylvain Dupont
40d38fcc0d TOON: Added most of the remaining Advanced Engine Features
Loading/Saving during runtime, Advanced Pausing,
Load savestate via launcher, RTL

svn-id: r53549
2010-10-16 21:58:33 +00:00