Commit Graph

52 Commits

Author SHA1 Message Date
Johannes Schickel
5d84f2df43 CINE: A little bit enforcement of our formatting guidelines.
Powered by astyle & manual fixup afterwards.
2012-09-07 04:12:18 +01:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
David Turner
c0da18e9b8 CINE: Added fix for Operation Stealth Loss of Inventory after Scene 6 Labyrinth Maze.
It is now possible to open the office safe and get the envelope, though the engine now asserts with a palette issue in the next scene as the Russians board the Jetskis.

svn-id: r55194
2011-01-09 22:54:04 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Eugene Sandulenko
327d30d719 CINE: eliminate global variables
svn-id: r51937
2010-08-09 11:38:01 +00:00
Max Horn
37b7be4519 CINE: Change Doxygen commands to match our CFC
svn-id: r48764
2010-04-21 21:22:43 +00:00
Torbjörn Andersson
72eb9ec9ea Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
before freeing it, which isn't necessary.

svn-id: r46941
2010-01-03 19:37:43 +00:00
Johannes Schickel
8daf7fbba8 Changed some type names to match our coding guidelines.
svn-id: r44224
2009-09-20 23:34:48 +00:00
Kari Salminen
0911982954 Converted objectTable from a plain array to a Common::Array. Should help to catch out of bounds access errors that may cause memory corruption.
svn-id: r33725
2008-08-09 20:50:10 +00:00
Max Horn
bd296a45fa Fixed unitialized variables
svn-id: r32865
2008-07-01 10:33:25 +00:00
Kari Salminen
ecbf8d54ad Implemented resetGfxEntityEntry and made it used where appropriate (The function wasn't very easy to reverse engineer so it may have flaws still, but let's hope it doesn't ;-)).
svn-id: r32848
2008-06-30 03:33:08 +00:00
Kari Salminen
8cd03780f6 Implemented Operation Stealth's version of addOverlay(objectIndex, overlayType).
svn-id: r32816
2008-06-26 23:30:45 +00:00
Kari Salminen
a2e6f35310 Implemented opcode:
- 0x8D: o2_op8D (Didn't come up with a descriptive name yet)
Compares ranges of x, y and mask parameters between two objects.
Possibly some kind of an intersection testing function?

svn-id: r32785
2008-06-25 15:09:24 +00:00
Kari Salminen
f1cacafc46 Fixed opcodes:
- 0xA0: o2_addGfxElementType20 (Was o2_addGfxElementA0)
Implemented opcodes:
- 0xA1: o2_removeGfxElementType20 (Was o2_removeGfxElementA0)
- 0xA2: o2_addGfxElementType21 (Was o2_opA2)
- 0xA3: o2_removeGfxElementType21 (Was o2_opA3)
NOTE: Drawing of type 21 overlay elements isn't coded yet.

svn-id: r32769
2008-06-24 20:44:37 +00:00
Kari Salminen
b7deac38b3 Added check in modifyObjectParam's start (Verified with FW & OS PC versions' disassemblies). Also removed superfluous default-case, hopefully no compiler will complain about this :).
svn-id: r32371
2008-05-29 22:07:25 +00:00
Kari Salminen
3f91c579fc Verified most parts of opcode 0x01 (o1_modifyObjectParam) against Future Wars's and Operation Stealth's disassembly (Only part of switch case 3 still left to do).
svn-id: r32360
2008-05-29 12:22:14 +00:00
Eugene Sandulenko
f2d72d9473 Patch #1969189: "CinE renderer rewrite"
svn-id: r32257
2008-05-24 22:11:41 +00:00
Eugene Sandulenko
57a9ef3a8f Patch #1941066: "CinE sprite overlay rewrite" courtsey of next_ghost
svn-id: r31651
2008-04-21 20:51:17 +00:00
Eugene Sandulenko
732774fd8d Patch #1913862: "CinE Script system"
svn-id: r31444
2008-04-07 20:24:40 +00:00
Eugene Sandulenko
7aadf6c191 Slightly modified patch #1848173: "ScriptVars class implementation for CinE"
svn-id: r30125
2008-01-01 16:57:03 +00:00
Filippos Karapetis
8b0ae7983c Change 3 remaining free() to delete, which were not changed with commit #29841 (part of patch #1848173)
svn-id: r29972
2007-12-24 10:10:21 +00:00
Filippos Karapetis
729c843091 Cleanup
svn-id: r29858
2007-12-14 13:51:41 +00:00
Gregory Montoir
e1b73e47f8 use CLIP template for clipping, made an array static const and renamed MAX_OBJECTDATA to MAX_VAR
svn-id: r29853
2007-12-13 19:07:10 +00:00
Filippos Karapetis
ee56120fcf Added a proper fix for bug #1733238 - "FW: crash in copier room", taken from next_ghost's patch #1848173 - "ScriptVars class implementation for CinE"
svn-id: r29852
2007-12-13 17:53:31 +00:00
Filippos Karapetis
8b7f3fae35 Cleanup
svn-id: r29844
2007-12-13 12:33:31 +00:00
Filippos Karapetis
8968f7e616 Changed the C style malloc/free to the C++ style new/delete
svn-id: r29841
2007-12-13 10:06:53 +00:00
Filippos Karapetis
c488384f19 Cleanup and simplification
svn-id: r29754
2007-12-08 02:24:12 +00:00
Nicola Mettifogo
258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Filippos Karapetis
5dc568e7a7 Fix for #1733238 - FW: crash in copier room
svn-id: r27376
2007-06-12 12:49:07 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Gregory Montoir
137140b7e9 removed some resource related memory leaks
svn-id: r27007
2007-05-29 21:06:07 +00:00
Gregory Montoir
73210b4aa3 added code for freePartRange, freePartEntry and freeOverlay (also renamed some functions and variables).
svn-id: r27006
2007-05-29 20:22:20 +00:00
Gregory Montoir
e6ef2348a4 removed duplicated code (BASESON datafiles can be loaded with the existing bundle related functions)
svn-id: r26836
2007-05-13 16:07:33 +00:00
Torbjörn Andersson
9dfc4b5f69 Fixed serious bug in removeOverlayElement() that would cause it to fail. This
caused getObjectUnderCursor() select the wrong object because the object list
was no longer guaranteed to be sorted on priority ("mask").

In Future Wars, this made it difficult (impossible?) to pick up the tunic,
because the game would pick the bushes instead, even though the tunic had a
higher priority.

svn-id: r21825
2006-04-12 11:27:45 +00:00
Eugene Sandulenko
8679083991 cleanup
svn-id: r21819
2006-04-12 03:12:56 +00:00
Torbjörn Andersson
812dd72207 Cleanup.
svn-id: r21681
2006-04-08 07:16:14 +00:00
Torbjörn Andersson
738aecd57e Fixed bug in loadObject() where the data pointer was only advanced for the
objects that were actually loaded from the file, not the ones that were
skipped. This bug was introduced when porting cinE to the ScummVM framework,
and would cause Future Wars to crash after the copy protection screen. Quite
possibly other bugs, as well.

svn-id: r21632
2006-04-05 20:11:00 +00:00
Max Horn
8cdee5a931 Do not #include endian.h in scummsys.h (cuts down deps on endian.h from ~400 to ~250). Many greetings to eriktorbjorn, and have fun recompiling.
svn-id: r21500
2006-03-29 15:59:37 +00:00
Eugene Sandulenko
0b35672f78 uint8 -> byte
svn-id: r21414
2006-03-23 03:45:52 +00:00
Eugene Sandulenko
fced8df162 Got rid of ASSERT and ASSERT_PTR defines
svn-id: r21412
2006-03-23 03:17:47 +00:00
Gregory Montoir
61a5fb7064 - added defines to handle the different mouse cursors
- revised the way NUM_MAX_PARTDATA and NUM_MAX_ANIMDATA are used
- renamed some variables
- constify'ed function arguments
- minor cleanup

svn-id: r21338
2006-03-16 20:29:07 +00:00
Gregory Montoir
8f38cb6ff3 added mouse cursors
svn-id: r21321
2006-03-15 22:34:46 +00:00
Eugene Sandulenko
76a4bf9e77 Eliminate flip_support.cpp file.
svn-id: r21045
2006-03-03 19:38:17 +00:00
Gregory Montoir
9c80770411 cleanup
svn-id: r20957
2006-02-27 21:25:59 +00:00
Max Horn
a30f829773 Some more cine header cleanup
svn-id: r20859
2006-02-25 01:18:01 +00:00
Max Horn
275344a931 Reducing the header dependencies in cine a bit more
svn-id: r20857
2006-02-25 01:01:27 +00:00
Max Horn
2fc23c85da Moved cine engine into namespace Cine
svn-id: r20851
2006-02-25 00:26:14 +00:00
Paweł Kołodziejski
e31b271760 formating code
svn-id: r20835
2006-02-23 18:47:28 +00:00
Travis Howell
26e0d95ef4 Fix a few compile warnings.
svn-id: r20826
2006-02-23 11:05:58 +00:00
Travis Howell
3fe8c971f2 Cleanup to remove duplicate type defines
svn-id: r20821
2006-02-23 09:12:21 +00:00