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
Benjamin Haisch
ecbd0a0d53
Optimized object property access speed
...
svn-id: r46102
2009-11-23 15:31:58 +00:00
Filippos Karapetis
a983c88e37
Reverted parts of revisions #44292 , #44293 , #44295 and #44296 , to prevent warnings and issues in compilers which don't support NORETURN
...
svn-id: r44312
2009-09-24 17:24:42 +00:00
Filippos Karapetis
c91f5759b9
MADE: Fixed some warnings about unreachable code
...
svn-id: r44296
2009-09-24 09:51:26 +00:00
Torbjörn Andersson
0999534749
The error() and warning() functions add ! and newline automatically. (I didn't
...
look at debug() and debugC(), since I'm really bored with this now. :-)
svn-id: r41061
2009-05-31 10:02:16 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Kari Salminen
dfab0ee6d0
Initialize variables that might not be initialized but still used later on line 422 in a debug function call (Fixes MSVC's warnings about 'potentially uninitialized local variable').
...
svn-id: r36031
2009-01-24 05:02:08 +00:00
Benjamin Haisch
5b8105afb3
- Added support for The Manhole EGA version
...
- Support for 'chunked' picture resources and EGA pictures
- Improved the mouth sync in RtZ (still not perfect, though)
- Removed obsolete TODOs
- Fixed sfPlayMovie to return if the movie playback was aborted or not; this is used by RtZ to determine if it should display the credits screen after the intro movie
svn-id: r35997
2009-01-22 13:04:29 +00:00
Filippos Karapetis
405680af6d
Game database headers are verified now
...
svn-id: r35861
2009-01-14 11:18:14 +00:00
Filippos Karapetis
305954d34a
Save game headers are now verified
...
svn-id: r35848
2009-01-13 19:29:55 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Benjamin Haisch
2ce4a32fb6
- Implemented cmd_restart (for the restart functionality in Return to Zork)
...
svn-id: r35378
2008-12-15 09:01:43 +00:00
Benjamin Haisch
7bceafb3f2
- Fixed sprite drawing in Rodney's Funscreen
...
- Handle mouse button up events and event number fixes in MadeEngine::handleEvents()
- Use milliseconds -> game ticks calculation based on Windows version of the original engine
- "Rodney's Fun Screen" -> "Rodney's Funscreen"
svn-id: r32731
2008-06-18 11:01:51 +00:00
Sven Hesse
46681407ab
Fixing compilation
...
svn-id: r32676
2008-06-12 18:33:34 +00:00
Benjamin Haisch
fb31c62ad8
- Added support for Rodney's Fun Screen
...
- Added audio cd playback (still kinda broken though)
- Renamed getObjectPropertyPtr to findObjectProperty
svn-id: r32669
2008-06-12 11:09:04 +00:00
Benjamin Haisch
b9776d46b2
- Implemented opcodes: sfHomeText, sfDrawAnimPic
...
- Comments on unneeded opcodes
- Simplified getting/setting strings in Objects
svn-id: r32361
2008-05-29 12:57:11 +00:00
Benjamin Haisch
885fa54f28
Split Object/GameDatabase into engine version specific classes
...
svn-id: r32349
2008-05-28 20:16:22 +00:00
Benjamin Haisch
3db45cc0c8
Implemented savegame saving/loading for LGOP2.
...
svn-id: r32081
2008-05-13 08:21:28 +00:00
Filippos Karapetis
10826a29d2
Removed debug output
...
svn-id: r31967
2008-05-09 16:09:46 +00:00
Benjamin Haisch
9df82055f0
- The Manhole: New and Enhanced is now (partially) playable
...
- Implemented cmd_objectp
- Changed how the script externals array is set up
- Cleanup
svn-id: r31895
2008-05-06 11:45:23 +00:00
Kari Salminen
4eb9abe99f
Fixed unsigned/signed mismatch warning.
...
svn-id: r31875
2008-05-05 13:11:34 +00:00
Benjamin Haisch
b6c7385eb4
- Renamed XmidiResource to GenericResource
...
- Added MIDI resource type
- Added ScriptFunctionsLgop2 and ScriptFunctionsMhne (for Leather Goddesses of Phobos 2 and The Manhole: New and Enhanced, resp.)
- Many changes for LGOP2 and The Manhole: N&E
Note about the new ScriptFunctions classes:
I copied the ScriptFunctionsRtz class and so duplicated a lot of code. Most of the opcode functions are the same in all games but there might be differences. Once all common opcode functions have been figured out, they'll be moved to a common place (like the ScriptFunctions class).
svn-id: r31871
2008-05-05 10:45:11 +00:00
Sven Hesse
c84b371957
Fixing Fingolfin's commit :P
...
svn-id: r31830
2008-05-02 16:46:06 +00:00
Max Horn
8da048a468
Fix warnings
...
svn-id: r31829
2008-05-02 16:41:54 +00:00
Benjamin Haisch
d1ef9aa213
- Added patch #1955698 : MADE: Add "The Manhole" Detection
...
- Added detection for Leather Goddesses of Phobos 2
Note that these two games will definitely not work as expected and will probably crash!
svn-id: r31810
2008-05-02 12:08:06 +00:00
Benjamin Haisch
7509d66caf
Implemented savegame loading/saving and sprite clipping
...
Fixed bug in Screen::printTextEx
Implemented opcodes:
- o1_DRAWTEXT
- o1_DRAWMENU
- o1_MENUCOUNT
- o1_SAVEGAME
- o1_LOADGAME
- o1_GAMENAME
svn-id: r31794
2008-04-30 20:36:19 +00:00
Benjamin Haisch
5975956f2c
Fixed possible endian problems in getObjectPropertyPtr.
...
svn-id: r31779
2008-04-29 21:51:55 +00:00
Benjamin Haisch
6069dba988
Implemented direct loading of rtzcd.dat from the archive rtzcd.red, i.e. the game doesn't have to be installed first to get rtzcd.dat. Also added the respective detection entry.
...
svn-id: r31661
2008-04-23 08:08:37 +00:00
Filippos Karapetis
056547f45f
Removed 2 obsolete fixmes
...
svn-id: r31653
2008-04-22 07:38:49 +00:00
Benjamin Haisch
5279c58072
Fixed endian issues in get/setObjectProperty.
...
svn-id: r31638
2008-04-21 07:28:13 +00:00
Torbjörn Andersson
7e07dd5ec7
Changed spaces to tabs.
...
svn-id: r31610
2008-04-20 15:36:40 +00:00
Filippos Karapetis
d0590a09ea
Initial import of the work in progress MADE engine
...
svn-id: r31599
2008-04-20 14:43:56 +00:00