Commit Graph

24698 Commits

Author SHA1 Message Date
Johannes Schickel
06cf3d3c54 Add test for copying hashmaps.
svn-id: r31315
2008-03-30 02:39:21 +00:00
Johannes Schickel
dcc385f3de Fixed hashmap code. (please make a better check next time when changing code in common/, this was a really bad one :-/)
svn-id: r31314
2008-03-30 02:36:23 +00:00
Johannes Schickel
a957b45d5c Cleanup.
svn-id: r31313
2008-03-30 01:35:12 +00:00
Johannes Schickel
3db24addcd - Added support for custom deletion operator (aka deleter) support for SharedPtr.
- Removed two failing comparison tests of SharedPtr in our test suite (those were not supported according to our documentation anyway)

svn-id: r31312
2008-03-30 01:26:51 +00:00
Johannes Schickel
08b54da75e Readded friend statement required by standard conform compilers. Disabled for gcc 2.95 though.
svn-id: r31311
2008-03-30 01:09:05 +00:00
Johannes Schickel
b3f858af2b Renamed some functions according to our coding guidelines.
svn-id: r31310
2008-03-30 01:01:12 +00:00
Johannes Schickel
30c513eb2d - fixed formatting
- fixed const correctness (needed a const_cast though :-/)

svn-id: r31309
2008-03-30 00:55:16 +00:00
Johannes Schickel
6a5ae22368 Formatting.
svn-id: r31308
2008-03-30 00:54:46 +00:00
Max Horn
85f8d617b0 Let mass detector add all hits, instead of only the first one
svn-id: r31307
2008-03-29 23:20:53 +00:00
Florian Kagerer
25b9a8a1cb New drawShape code for Kyra 1 and 2. Scaled sprites no longer appear mutilated. This also fixes bug #1582675 (KYRA1: Brandon standing IN the floor).
This still needs some testing (for both Kyra 1 and Kyra 2).

svn-id: r31306
2008-03-29 23:16:44 +00:00
Bertrand Augereau
7b295995dc Centralized the way the hashmaps allocate and free nodes (in order to instrument and maybe use a pool allocator later)
svn-id: r31305
2008-03-29 23:04:10 +00:00
Max Horn
e93a1f0c32 Removing dead code
svn-id: r31304
2008-03-29 21:17:43 +00:00
Max Horn
dbe38029db Changed FilesystemNode to use a SharedPtr instead of implementing its own ref counting
svn-id: r31303
2008-03-29 21:12:36 +00:00
Johannes Schickel
e411ccc01f - allow SharedPtr objects with incomplete type
- updated documentation accordingly
- clarified documentation about comparison operators of SharedPtr

svn-id: r31301
2008-03-29 20:14:32 +00:00
Travis Howell
7a919a0f4f Add patch #1928643 - Czech fan translation of Simon the Sorcerer 1.
svn-id: r31300
2008-03-29 13:27:25 +00:00
Max Horn
f93c076a7b Document SharedPtr bool conversion operator; added test cases for it; also added two test cases for the comparision operators, which currently fail
svn-id: r31299
2008-03-29 00:08:56 +00:00
Max Horn
1092b87cd7 Removed unused friends statement (causes internal compiler error with GCC 2.95 on BeOS)
svn-id: r31298
2008-03-29 00:04:33 +00:00
Filippos Karapetis
1e58257791 Oops
svn-id: r31297
2008-03-28 17:46:18 +00:00
Filippos Karapetis
70e4503274 Fixed 2 off-by-one errors (thanks next_ghost for spotting them)
svn-id: r31296
2008-03-28 17:38:45 +00:00
Johannes Schickel
7605a9a517 Changed HoF GUI code to use common GUI code now.
svn-id: r31295
2008-03-28 16:15:00 +00:00
Johannes Schickel
4ac08aa32a - fixed svn properties
- reenabled kyra1 layout calculation

svn-id: r31294
2008-03-28 15:29:39 +00:00
Filippos Karapetis
006f879dd8 Updated MSVC8 and MSVC9 ScummVM project files for commit #31287
svn-id: r31293
2008-03-28 12:45:26 +00:00
Filippos Karapetis
70ed8f51b4 Updated MSVC8 and MSVC9 kyra project files for commit #31290
svn-id: r31292
2008-03-28 12:36:53 +00:00
Max Horn
770bc64f21 Added FIXME comment regarding sorting of pred.dic; replaced weird binary search code with simple binary search code ;-)
svn-id: r31291
2008-03-28 09:17:13 +00:00
Johannes Schickel
b910d8d9bb Refactored Kyrandia GUI code a bit.
svn-id: r31290
2008-03-28 09:00:30 +00:00
Max Horn
7f81de6794 cleanup
svn-id: r31289
2008-03-28 08:30:42 +00:00
Johannes Schickel
f2e53b9d22 Oops that shouldn't be committed yet.
svn-id: r31288
2008-03-28 06:06:11 +00:00
Johannes Schickel
e29b4bb0cd Committed shared pointer implementation of patch #1895703 "COMMON: Managed List".
Unlike the patch on the tracker this commit includes documentation for SharedPtr.

svn-id: r31287
2008-03-28 06:03:59 +00:00
Johannes Schickel
dc1a7004e9 Fixed showing of cauldron animations processing while the inventory is not shown.
svn-id: r31286
2008-03-28 01:44:49 +00:00
Johannes Schickel
f7d14259c9 Implemented command text fadeout.
svn-id: r31285
2008-03-28 01:28:02 +00:00
Johannes Schickel
5fd6af3071 Finished o2_delay implementation.
svn-id: r31284
2008-03-28 01:10:58 +00:00
Johannes Schickel
615a40d19c Oops fixed wrong o2_delaySecs.
svn-id: r31283
2008-03-28 01:07:16 +00:00
Johannes Schickel
c5929561ba - Clear input queue after loading game via hotkeys.
- Fixed bug which caused the need for clicking twice to change pages in spellbook.

svn-id: r31282
2008-03-28 01:03:54 +00:00
Johannes Schickel
b033c5f605 Implemented savegame loading via command line params -x/--save-slot.
svn-id: r31281
2008-03-28 00:53:54 +00:00
Johannes Schickel
a1ec44cef2 Properly set sfx flag when playing digital SFX.
svn-id: r31280
2008-03-28 00:16:47 +00:00
Johannes Schickel
98f9a47619 Implemented opcodes:
- 38: o2_countItemsInScene
 - 57: o2_setTimerDelay
 - 84: o2_getSceneExitToFacing
 - 137: o2_removeItemFromScene

svn-id: r31279
2008-03-28 00:13:43 +00:00
Florian Kagerer
221e6bb84f - some accuracy changes for KyraEngine_v2::snd_playSoundEffect()
- fix one more skip flag bug in the sequence player
- fix SoundTowns_v2::voicePlay()

svn-id: r31278
2008-03-28 00:07:40 +00:00
Johannes Schickel
72484b204b - Implemented opcodes:
-> 51: o2_getElapsedSecs
  -> 52: o2_getTimerDelay
- Added warnings to o2_delaySecs and o2_delay for unimplemented subfunctions

svn-id: r31277
2008-03-27 23:53:49 +00:00
Johannes Schickel
bf26f82cbb Implemented opcode 74: o2_setSceneAnimPos2.
svn-id: r31276
2008-03-27 23:46:30 +00:00
Johannes Schickel
7a683ae436 Implemented opcodes:
- 164: o2_getSfxDriver
 - 165: o2_getVocSupport
 - 166: o2_getMusicDriver

svn-id: r31275
2008-03-27 23:12:45 +00:00
Johannes Schickel
42ff616533 Oops added missing return, should fix crashed on trying to load non-existant savegames.
svn-id: r31274
2008-03-27 22:34:17 +00:00
Florian Kagerer
c8ddd54039 fix for bug 1922560 (HoF: wheels entrance gfx wrong)
svn-id: r31273
2008-03-27 22:07:57 +00:00
Johannes Schickel
70dfc2baf7 Made some more former kyra1 specific debug commands available for HoF.
svn-id: r31272
2008-03-27 22:05:13 +00:00
Johannes Schickel
c5526604c0 Removed much code duplication in Hand of Fate savefile loading with SeekableSubReadStreamEndian.
svn-id: r31271
2008-03-27 20:54:59 +00:00
Johannes Schickel
ff2ba585b3 Implemented SeekableSubReadStreamEndian moddeled after MemoryReadStreamEndian.
svn-id: r31270
2008-03-27 20:53:52 +00:00
Johannes Schickel
639c4597cd Readded warning when loading HoF saves from original interpreter.
svn-id: r31269
2008-03-27 20:24:41 +00:00
Johannes Schickel
3bea667a10 - Implemented support for --list-saves in Kyra engine
- Added support for variable length savegame name field
- Changed savegame identifier
- Increased savegame file version

svn-id: r31268
2008-03-27 18:03:00 +00:00
Johannes Schickel
165c937e20 Enabled gamespeed debug command also for Kyra1.
svn-id: r31267
2008-03-27 16:12:48 +00:00
Johannes Schickel
3e98286af9 Fixed palette loading debug command for amiga version.
svn-id: r31266
2008-03-27 15:32:20 +00:00
Johannes Schickel
4d4fbc9e97 Added debugger command to set screen palette.
svn-id: r31265
2008-03-27 15:27:31 +00:00