Commit Graph
141 Commits
Author SHA1 Message Date
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 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 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 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 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
Sylvain Dupont 748e00f1cf TOON: Implemented the 4 different mute modes for sound/text
As specified in the hotkeys screen (music,dialog,sound,text on/off)
Sounds are still played but with a volume = 0 (for timing issues)

svn-id: r53545
2010-10-16 19:27:11 +00:00
Sylvain Dupont 49fc73e3be TOON: Fix bugs #3085967 and #3085969 about guards dance
Bug #3085969: "TOON: Missing dialogue for Palace guards dance"
Bug #3085969: "TOON: Missing dialogue for Palace Guards sequence"

svn-id: r53543
2010-10-16 17:06:10 +00:00
Sylvain Dupont de1b17fb99 TOON: Fix inventory autoclose when the click is too long
svn-id: r53542
2010-10-16 15:55:11 +00:00
Sylvain Dupont 291f39044f TOON: Removed useless debug printf
svn-id: r53541
2010-10-16 15:49:48 +00:00
Sylvain Dupont fff2066872 TOON: Fixed bug #3085999 with bad mouse button behavior
Bug #3085999: TOON: "Exiting inventory screen loop"
Now the events are fired on mouse down instead of on mouse up.

svn-id: r53540
2010-10-16 15:44:50 +00:00
Sylvain Dupont 7b50c2e3c3 TOON: Fixed Bug #3086564 with freezing conversation
Bug #3086564: "TOON: Conversation freeze"
There was an error in hardcoded conversation flag function
Fixed also all endianess problems in conversations

svn-id: r53539
2010-10-16 15:14:09 +00:00
Sylvain Dupont 2c2ca3e353 TOON: Fixed bug #3086000 there was no magnifier effect
Bug #3086000: "TOON: Magnifying glass cursor drawn incorrectly"
Zoom magnifier postprocess fx has been implemented

svn-id: r53529
2010-10-16 00:17:19 +00:00
Sylvain Dupont 19272595e7 TOON: Fixed Bug #3085978 with "Exit Not Defined" appearing
Bug #3085978: "TOON: "Exit not defined" when leaving cellar"

svn-id: r53521
2010-10-15 22:05:54 +00:00
Sylvain Dupont 906704b213 TOON: Fixed bug #3084738 with loading bottomless bag state
Bug #3084738: "TOON: Vanishing bottomless bag"

svn-id: r53520
2010-10-15 21:58:34 +00:00
Filippos Karapetis 5961857049 TOON: Fixed code analysis warning - bug #3087867
svn-id: r53502
2010-10-15 15:17:49 +00:00
Jordi Vilalta Prat 00a477fa79 TOON: Fix some labels of the Spanish version.
The solution was suggested by Strangerke after realising it looked like a
copy-paste typo from the Russian version.

svn-id: r53458
2010-10-14 18:51:11 +00:00
Lars Persson c0e2f1c6f8 TOON: Updated code to build properly for WINSCW and GCCE(symbian)
Added templates to MAX & MIN functions. Correct usage of OpcodeV2(instead of Opcode)
Match implementation with function definition. (int32 is not == int on all platforms)

svn-id: r53401
2010-10-13 07:14:38 +00:00
Sylvain Dupont 4c4e821326 TOON: Fixed bug #3085971 with missing "fail" sound sfx
Bug #3085971: "TOON: Missing sfx for invalid Flux request"

svn-id: r53260
2010-10-12 22:57:03 +00:00
Sylvain Dupont 8061d8cac9 TOON: Fixed bug #3086025 with bad inventory behavior
Bug #3086025 "TOON: Inventory not working correctly with butter"

svn-id: r53199
2010-10-12 22:18:43 +00:00
Torbjörn Andersson 54b2a8c98d JANITORIAL: Cleanup (mostly whitespace)
svn-id: r53161
2010-10-12 04:19:58 +00:00
Sylvain Dupont 21cb3a62b6 TOON: Reverted script throttle for now and fixed anim timing issue
svn-id: r53155
2010-10-11 23:12:59 +00:00
Filippos Karapetis 576d6429bc TOON: Reduced CPU usage by about 40%
svn-id: r53151
2010-10-11 21:27:28 +00:00
Sylvain Dupont ce97c61079 TOON: Fixed offsets in hard coded conversation musics
svn-id: r53144
2010-10-10 23:10:14 +00:00
Johannes Schickel 85f770599f TOON: Coding guideline corrections.
svn-id: r53132
2010-10-10 21:26:18 +00:00
Sylvain Dupont 927f560eb2 TOON: Fixed bad Flux state when restoring a game
svn-id: r53127
2010-10-10 16:52:15 +00:00
Sylvain Dupont c952f7aa58 TOON: Added special conversation musics
svn-id: r53124
2010-10-10 15:47:05 +00:00
Sylvain Dupont 0d6d895478 TOON: Disable too many levels of recursion with click events
svn-id: r53119
2010-10-10 14:30:13 +00:00
Johannes Schickel 571fe5d21e TOON: Constify some more tables.
svn-id: r53099
2010-10-09 11:18:19 +00:00
Johannes Schickel eef9f7b57b TOON: Ran astyle over the toon engine (+ some manual corrections).
svn-id: r53098
2010-10-09 11:11:26 +00:00
Torbjörn Andersson 20e6baca22 TOON: More semi-colon cleanup.
svn-id: r53097
2010-10-09 10:41:01 +00:00
Sylvain Dupont 3a0ad4c41c TOON: String fixes for motoezx build
svn-id: r53093
2010-10-09 00:29:10 +00:00
Eugene Sandulenko e11637c7bc TOON: Normalized include paths
svn-id: r53089
2010-10-08 22:45:28 +00:00
Eugene Sandulenko cf82bef02e TOON: Merged Toon engine to ScummVM trunk
svn-id: r53087
2010-10-08 22:30:39 +00:00