763 Commits

Author SHA1 Message Date
Nicola Mettifogo
551f6d71c3 Made frame unpacking buffer dynamic (this frees some BSS space).
svn-id: r33072
2008-07-15 10:59:58 +00:00
Nicola Mettifogo
c48f3ca8d8 Removed all labels from the rendering list to avoid random crashes after introduction is over.
svn-id: r33058
2008-07-14 13:35:43 +00:00
Nicola Mettifogo
d0ae6885ac Fixed regression in walk code. Now standing frames are correctly selected when the character encounters an unexpected blocking object in his/her path.
svn-id: r33053
2008-07-14 00:21:05 +00:00
Nicola Mettifogo
7b2645248c Made sure characters are not removed from the rendering list during switches.
svn-id: r33052
2008-07-14 00:13:31 +00:00
Nicola Mettifogo
ef95c6ff70 More refactoring of walk code.
svn-id: r33033
2008-07-13 13:04:36 +00:00
Nicola Mettifogo
059936854c Cleanup of walk code.
svn-id: r33023
2008-07-13 06:27:31 +00:00
Nicola Mettifogo
2a80bd0678 Cleanup and improved debugging output for CommandExec::run()
svn-id: r33022
2008-07-13 03:39:42 +00:00
Nicola Mettifogo
9c2d96530b Properly implemented the OFF command. The new rendering order for graphics let this mistake finally surface.
svn-id: r33021
2008-07-13 03:30:14 +00:00
Nicola Mettifogo
8ba56e98cf Cleanup.
svn-id: r33006
2008-07-11 13:36:22 +00:00
Nicola Mettifogo
8ed023142a Moved program and command execution code out of the engine, into their own brand new
classes.

svn-id: r33003
2008-07-11 13:06:28 +00:00
Nicola Mettifogo
fe65583657 Fixed leak in sound code by explicitly deleting the midi driver.
svn-id: r33002
2008-07-11 12:55:08 +00:00
Nicola Mettifogo
03cd937b13 Fixed destruction of sprites in BRA.
svn-id: r32983
2008-07-10 02:00:54 +00:00
Nicola Mettifogo
12cefc4132 Fixed leaks in NS and BRA.
svn-id: r32976
2008-07-09 13:27:09 +00:00
Nicola Mettifogo
18b48c74a9 Fixed regression introduced with GfxObj: the character sprite was sometimes removed from the rendering list.
svn-id: r32974
2008-07-09 10:52:46 +00:00
Nicola Mettifogo
a294d22213 Added a couple of NULLity checks.
svn-id: r32972
2008-07-09 02:49:20 +00:00
Nicola Mettifogo
0f8f3d51bb Fixed regression after label code refactoring.
svn-id: r32940
2008-07-07 14:51:27 +00:00
Travis Howell
60db8cb8cf Correct typo.
svn-id: r32903
2008-07-04 00:35:39 +00:00
Nicola Mettifogo
d387d1af0e - Moved dialogue balloon management code from Gfx to its own class
- Added a class to draw balloons in BRA (still without text and with wrong placement)

svn-id: r32902
2008-07-04 00:29:21 +00:00
Nicola Mettifogo
59e672ef40 Changed balloons to use GfxObj as well. Next step is to integrate balloons for BRA.
svn-id: r32883
2008-07-03 10:31:25 +00:00
Eugene Sandulenko
de09845319 Fix for bug #2008054: Parallaction engine doesn't compile under MSVC9
svn-id: r32879
2008-07-03 08:44:29 +00:00
Nicola Mettifogo
77a60673ef - Changed labels to be GfxObj's, thus removing the Label object altogether.
- Changed Item's to be almost GfxObj's, since ownership and destruction of underlying resource is an issue here (got to think some more about it).

svn-id: r32873
2008-07-02 01:41:08 +00:00
Nicola Mettifogo
2779b851ab Small cleanup/shuffling of Gfx code.
svn-id: r32847
2008-06-30 01:36:50 +00:00
Nicola Mettifogo
206485ffc6 Merged the three render lists (for animations, doors and objects) into a single one.
svn-id: r32834
2008-06-29 09:56:44 +00:00
Nicola Mettifogo
d8645297cd Changed all remaining code to use the GfxObj class to keep frames data. This allows for more uniform processing during rendering, and also fixes the display of dialogue faces for BRA.
svn-id: r32833
2008-06-29 09:30:32 +00:00
Nicola Mettifogo
e6e56feb1c Added comment for fix for bug #2001193.
svn-id: r32820
2008-06-28 13:31:58 +00:00
Nicola Mettifogo
28e32bb7cb Fix for bug #2001193. Character confirmation screen didn't appear and game crashed because too many strings were added to the draw list.
svn-id: r32762
2008-06-24 13:21:22 +00:00
Filippos Karapetis
9194f39185 Fixed 2 MSVC warnings (potentially undefined behavior and possibly uninitialized variable used)
svn-id: r32758
2008-06-22 17:36:14 +00:00
Nicola Mettifogo
d2609258cc Added constructor and destructor to Dialogue, thus fixing a long standing leak.
svn-id: r32757
2008-06-22 14:46:08 +00:00
Nicola Mettifogo
4e2e46f16c Fixed leak when loading sounds for Amiga version of Nippon Safes.
svn-id: r32756
2008-06-22 14:31:45 +00:00
Nicola Mettifogo
446f66807f Circular references between Zone/Animation and Command are now manually removed, to allow the objects - which are stored into SharedPtr's - to be deallocated.
svn-id: r32744
2008-06-22 05:42:22 +00:00
Christopher Page
e86a422e25 Merged revisions 32564-32565,32567-32575,32577,32579-32594,32596-32603,32605-32639,32644-32646,32648-32666 via svnmerge from
https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk

svn-id: r32667
2008-06-11 17:36:21 +00:00
Torbjörn Andersson
339874f6c0 Fixed warnings. (Mainly, GCC 4.3 doesn't want you to use "char" as an array
index. Probably because it's undefined whether or not it's signed.)

svn-id: r32637
2008-06-09 17:50:52 +00:00
Christopher Page
cae6396ce7 Merged revisions 32507-32513,32516,32518,32520-32521,32523-32524,32526-32548,32550-32562 via svnmerge from
https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk

svn-id: r32563
2008-06-05 21:20:35 +00:00
Nicola Mettifogo
2f92ebde2b oops. Changed stricmp to scumm_stricmp from last commit.
svn-id: r32531
2008-06-04 09:39:38 +00:00
Nicola Mettifogo
73832f2edd * Implemented character change opcodes in BRA
* Fixed loading of dialogue characters in BRA

svn-id: r32529
2008-06-04 09:07:55 +00:00
Nicola Mettifogo
52fbdd51eb Script instructions referencing unexisting animations are now skipped, instead of crashing the engine.
svn-id: r32524
2008-06-04 01:27:55 +00:00
Nicola Mettifogo
fe6ab4227e Return to menu after introduction has played (with glitches).
svn-id: r32523
2008-06-04 01:04:26 +00:00
Christopher Page
fa75221e48 PARA: Fixed some memory leaks
svn-id: r32519
2008-06-03 18:24:54 +00:00
Nicola Mettifogo
b87c11a4a1 Fixed initialization of parsers, necessary after the latest removal of static arrays.
svn-id: r32509
2008-06-03 00:49:27 +00:00
Christopher Page
0cbfc3a9d1 Merged revisions 32348-32349,32351-32356,32358-32411,32413-32441,32443-32445,32449,32453-32454,32456-32457,32459-32462,32464-32465,32467-32492,32494-32503 via svnmerge from
https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk

svn-id: r32505
2008-06-02 21:36:45 +00:00
Christopher Page
a338d5fdb2 PARA: Got rid of calls to system->quit() so that the Parallaction engine can return to the launcher. Also fixed a couple of memory leaks.
svn-id: r32504
2008-06-02 21:08:49 +00:00
Nicola Mettifogo
9630298df6 Sorted static mouse arrow bitmap, so it doesn't have to be 'decoded' on the fly. This saves a headache on re-entry.
svn-id: r32495
2008-06-02 13:12:07 +00:00
Nicola Mettifogo
22d63345e3 Got rid of the static arrays for initialization of parsers and exec opcodes, to make returning to launcher easier. The code has been borrowed by Kyra, after suggestion by LordHoto.
svn-id: r32465
2008-06-01 14:05:39 +00:00
Nicola Mettifogo
765f976008 * Cleanup of input code.
* Removed old timer routines.

svn-id: r32135
2008-05-15 01:18:26 +00:00
Sven Hesse
78b599bc26 Fix compilation
svn-id: r32118
2008-05-14 15:27:28 +00:00
Nicola Mettifogo
e2d58f4885 Oops. Forgot to update module.mk.
svn-id: r32116
2008-05-14 14:34:42 +00:00
Nicola Mettifogo
40ff1537a9 - Moved input code to its own class.
- Slightly simplified inventory highlight code thanks to changes in input code.

svn-id: r32115
2008-05-14 14:34:01 +00:00
Max Horn
6e3c92e239 Renamed some parallaction member vars to have a leading underscore (besides being part of our code formatting conventions, this fixes various name clash warnings)
svn-id: r32041
2008-05-11 22:08:32 +00:00
Nicola Mettifogo
1320ab610b Cleanup of parsing code.
svn-id: r31999
2008-05-11 08:55:16 +00:00
Nicola Mettifogo
6979458e26 Extracted script parsing code to its own class.
svn-id: r31972
2008-05-10 11:11:03 +00:00