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
Paul Gilbert
70472c79cd
Commit of patch submitted by Jaime Abraham Corrales Gonzalez, with minor formatting changes
...
svn-id: r40368
2009-05-07 09:49:13 +00:00
Torbjörn Andersson
e9e9725946
Added detection entry for the German 16-colour version, which was included on
...
the "Classic Collection" CD I just bought.
svn-id: r40330
2009-05-05 16:58:54 +00:00
Paul Gilbert
f53b4d3de4
Implemented the 'Start Again' menu option to properly restart the game
...
svn-id: r39981
2009-04-18 12:03:21 +00:00
Paul Gilbert
9efb96ce69
Changed the 'Exit' game menu option to exit gracefully, rather than using exit()
...
svn-id: r39980
2009-04-18 11:20:05 +00:00
Paul Gilbert
15252ad83c
Added support for the global menu save/loading, and changed the savegame format to store the savegame name and thumbnail
...
svn-id: r39979
2009-04-18 10:16:08 +00:00
Torbjörn Andersson
f5fb20680f
Apart from a "const", the volume() and getVolume() function were identical.
...
Removed the volume() function.
svn-id: r39868
2009-04-05 15:58:27 +00:00
Paul Gilbert
5f1c08505f
Implemented many of the remaining library functions
...
svn-id: r39857
2009-04-05 07:52:21 +00:00
Paul Gilbert
d90a343790
Created stub manager class for sound effects
...
svn-id: r39856
2009-04-05 07:51:31 +00:00
Paul Gilbert
07fb7735b5
Replaced all occurrences of the constant '257' with the existing constant 'NUM_FILE_ENTRIES'
...
svn-id: r39824
2009-04-04 01:21:25 +00:00
Paul Gilbert
121f174d61
Fixed incorrect palette range usage so room fade-ins happen correctly
...
svn-id: r39822
2009-04-03 23:27:38 +00:00
Johannes Schickel
44025f03d5
Fix compilation via manually implementing strToUpper, instead of relying on strupr.
...
svn-id: r39791
2009-04-01 14:02:55 +00:00
Johannes Schickel
bf94fc6e4e
Fix warnings.
...
svn-id: r39790
2009-04-01 14:00:17 +00:00
Paul Gilbert
f0456d67a8
Laid the basics for music handling
...
svn-id: r39788
2009-04-01 11:03:06 +00:00
Paul Gilbert
d42d6122d9
Laid the basics for music handling
...
svn-id: r39786
2009-04-01 10:43:24 +00:00
Paul Gilbert
d093adbb55
Replaced resource type numbers with existing constants
...
svn-id: r39785
2009-04-01 10:38:14 +00:00
Paul Gilbert
ab31f46676
Corrected the positions of two library functions in the library function list
...
svn-id: r39699
2009-03-26 11:16:34 +00:00
Max Horn
48d73ff6bf
CRUISE: Fixed bug when loading backgroundIncrustStruct::saveWidth (don't divide by 2, rather *multiply* by 2); also some cleanup
...
svn-id: r39657
2009-03-24 11:30:37 +00:00