Commit Graph

227 Commits

Author SHA1 Message Date
Joost Peters
5f7515162a Capitalize the C in Corpse
svn-id: r41110
2009-06-01 20:55:31 +00:00
Joost Peters
ce1c5e2c0b change pathfinding variables from char to int8 to ensure signedness
svn-id: r41109
2009-06-01 20:53:19 +00:00
Joost Peters
c7d181d107 don't use FROM_LE_* macros on font data, as it already is in native endianness
svn-id: r41108
2009-06-01 19:53:11 +00:00
Joost Peters
12837c968c Change flip[Short|Long] functions to bigEndian[Short|Long]ToNative to clarify that flipping only occurs on LE systems + some related cleanup.
svn-id: r41107
2009-06-01 19:29:04 +00:00
Paul Gilbert
18f5ef8234 Disabled an old script interpreter hack
svn-id: r41099
2009-06-01 10:17:34 +00:00
Paul Gilbert
b81270fbc0 Removed some out of date TODO's
svn-id: r41098
2009-06-01 09:18:48 +00:00
Paul Gilbert
2abbcd54a4 Replaced loadShort/saveShort functions with applicable endian macros
svn-id: r41097
2009-06-01 09:09:44 +00:00
Paul Gilbert
5bb449b2bf Removed the remaining two FIXME's - my analysis of the data indicates no issues with structure packing, and all multi-byte data accesses are wrapped using loadShort/saveShort, which is endian safe
svn-id: r41096
2009-06-01 08:46:39 +00:00
Paul Gilbert
4269c3a4ea Converted the saving of perso structure data to proper endian-safe serialisation
svn-id: r41093
2009-06-01 03:27:54 +00:00
Paul Gilbert
555d4038cc Slowed down the game to match the original, and introduced the ability to alter game speed using the keypad +/- keys
svn-id: r41064
2009-05-31 11:37:21 +00:00
Paul Gilbert
f94025f482 Merged the wait for mouse press event loop into the main loop, fixing animation glitch and enabling pausing, player menu, and exiting the game when waiting for a mouse press
svn-id: r41063
2009-05-31 10:14:41 +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
Paul Gilbert
a6abd5c2fc Bugfix to keep ScummVM responsive even when the displayOn variable is set to false
svn-id: r41017
2009-05-30 05:16:35 +00:00
Max Horn
fb79b18571 Changed SaveFileManager methods to take Common::String params (instead of char pointers)
svn-id: r41000
2009-05-29 14:38:22 +00:00
Paul Gilbert
b2751ff506 Reduced the word spacing width by one pixel to precisely match the original game
svn-id: r40987
2009-05-29 12:04:13 +00:00
Paul Gilbert
1b5a9504dc Bugfix for rendering text that caused corruption when the width was an odd number and a line was completely filled
svn-id: r40985
2009-05-29 11:47:32 +00:00
Paul Gilbert
682d95ff59 Bugfix for screen redrawing when waiting for mouse click - this fixes a blank screen at 3:00pm
svn-id: r40981
2009-05-29 10:52:34 +00:00
Paul Gilbert
2ae183a483 Fix for pathfinding bug that could occasionally stop the player from moving
svn-id: r40960
2009-05-28 12:16:23 +00:00
Paul Gilbert
f0e69a7d0b Replaced the original implementation of walk box handling with a cleaner, structure array based one
svn-id: r40954
2009-05-28 08:49:56 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Paul Gilbert
b993eba6a5 Removed the line feed workaround, and added explicit int16 castings to the FROM_LE_16 macros in the font system - this fixes a bug in the engine, allowing it to properly handle all non-printable characters correctly
svn-id: r40858
2009-05-24 11:37:24 +00:00
Paul Gilbert
57e104c625 Fixed the display glitch associated with the animated handle in the engine room
svn-id: r40851
2009-05-24 04:29:44 +00:00
Max Horn
65b5d31814 COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
svn-id: r40725
2009-05-19 11:42:14 +00:00
Max Horn
42cd218400 Improved Common::Serializer in several ways:
* Added support versioned serialization
* Added a convenience API for handling 'magic IDs' transparently
* Exposed the err()/clearErr() methods of the underlying streams
* Added a basic unit test for versioned loading (more should be added, in particular for saving)
* Removed the syncString(char *, uint16) alias for syncBytes(byte *buf, uint32 size)

svn-id: r40723
2009-05-19 11:23:13 +00:00
Paul Gilbert
7d6287dee7 Endian fix in script data access
svn-id: r40641
2009-05-17 10:01:21 +00:00
Paul Gilbert
dcca3197fc Properly named the script structure offset field, and fixed an endian bug
svn-id: r40634
2009-05-17 06:59:19 +00:00
Paul Gilbert
17f468bb02 Removed the obsolete game Id list - it seems redundant, and stops the warning message coming up about Target 'cruise' upgraded to 'cruise'
svn-id: r40633
2009-05-17 05:14:55 +00:00
Paul Gilbert
3c45ee20eb Properly named the dialog menu item 'selected' field
svn-id: r40632
2009-05-17 05:12:10 +00:00
Paul Gilbert
1a427f8a98 Added the font character lookup table for the German version of the game
svn-id: r40621
2009-05-16 11:16:34 +00:00
Paul Gilbert
e994b94c81 Added a workaround for a discrepancy in the English version - one of the long messages had a LF in the middle of a word
svn-id: r40618
2009-05-16 04:50:52 +00:00
Paul Gilbert
7ca0ca1dab Corrected mixed up parameter usage in the LoadFile method
svn-id: r40617
2009-05-16 04:04:35 +00:00
Paul Gilbert
358be385b5 Replaced value with proper constant, and named a previously un-named structure field
svn-id: r40616
2009-05-16 04:03:37 +00:00
Paul Gilbert
c3cf7420bd Fixed incorrect pathfinding data entry being deleted when a temporary actor animation is removed
svn-id: r40615
2009-05-16 00:33:49 +00:00
Paul Gilbert
adaa0472c5 Bugfix to saving the width of a cached background area - the previous code was, for some reason, saving the width divided by 2.. this was causing corruptions during reload for cached areas with an odd horizontal width
svn-id: r40595
2009-05-15 07:03:56 +00:00
Paul Gilbert
464b8cc7f3 Corrected saving/loading of cached background areas
svn-id: r40594
2009-05-15 06:46:56 +00:00
Paul Gilbert
5e5098bb96 Bugfix to prevent off-screen areas from being restored by restoreBackground
svn-id: r40593
2009-05-15 06:36:44 +00:00
Torbjörn Andersson
24604dfa22 Yet another strcpy() where source and destination may be the same...
svn-id: r40591
2009-05-15 04:59:45 +00:00
Paul Gilbert
b7af9831da Fixes for the backupBackground method when X < 0
svn-id: r40590
2009-05-15 04:54:45 +00:00
Paul Gilbert
bb45be960d Converted various printf statements to use debug, warning, and error.
svn-id: r40588
2009-05-15 04:35:47 +00:00
Paul Gilbert
03f5ad5cbb Bugfix for loadSetEntry to ensure graphics get allocated enough space. It's not exactly the way the original did it, but should suffice to ensure grahpics have sufficient space
svn-id: r40587
2009-05-15 04:07:10 +00:00
Paul Gilbert
cf62299c4a Removed standard library includes - they were marked with a FIXME to remove, and the current compilation under both MSVC8 and MinGW doesn't seem to need them.
svn-id: r40586
2009-05-15 03:52:30 +00:00
Paul Gilbert
fc87b82861 Fixed a memory leak in the new unified decodeGfxUnified decoder method
svn-id: r40585
2009-05-15 02:18:51 +00:00
Paul Gilbert
fe795a739e Converted some code from fopen to Common::File - it's not currently used, but just in case it's needed in the future
svn-id: r40584
2009-05-15 02:12:11 +00:00
Johannes Schickel
f0182121f7 Fix some variable may be used uninitialized warnings.
svn-id: r40528
2009-05-13 18:12:17 +00:00
Paul Gilbert
a6cf2bf2b1 Reintroduced language string lists as a fallback for DELPHINE.LNG, since not all versions have this file
svn-id: r40522
2009-05-13 12:31:30 +00:00
Paul Gilbert
57caa94081 Moved the construction of _sound and _music to the constructor, in case the run() method exits before initiaze is called
svn-id: r40520
2009-05-13 11:43:24 +00:00
Torbjörn Andersson
6372a3f527 Surely this function is supposed to return -2 when the memory allocation
*fails*, not when it succeeds...?

svn-id: r40510
2009-05-12 20:13:42 +00:00
Torbjörn Andersson
0cc6b88f58 When source and destination are the same, there is no need to strcpy(). In fact
it may even be harmful when source and destination overlap. (This happens when
loading savegames.)

svn-id: r40508
2009-05-12 20:03:10 +00:00
Torbjörn Andersson
9c18a12fa0 Fixed what looks like an obvious error in loadSong() that Valgrind caught.
svn-id: r40504
2009-05-12 19:24:11 +00:00
Paul Gilbert
4aedfc75f8 Changed the hardcoded 'Parler de..' string in the conversation dialog to use the correct language string
svn-id: r40477
2009-05-12 10:20:12 +00:00