Commit Graph

543 Commits

Author SHA1 Message Date
Johannes Schickel
b33b90ecd0 Made AGOS, DRASCULA, GOB, GROOVIE, MADE, SCUMM and TINSEL properly stop CD audio playback on engine quit. (This only problem affected playback from CD, not from ripped audio files)
svn-id: r43512
2009-08-18 15:31:26 +00:00
Filippos Karapetis
4af0cfbdbd Cleanup
svn-id: r43056
2009-08-04 21:56:59 +00:00
Filippos Karapetis
d14f0ccfb5 Removed the superfluous VGA buffer, replacing it with direct writes to the video buffer
svn-id: r43048
2009-08-04 17:22:18 +00:00
Torbjörn Andersson
f11435bb6d 78 bytes isn't enough for some of the longer conversation options. 128 might
not be enough either, but at least it fixes bug #2827170 ("DRASCULA:
Conversation error").

svn-id: r42801
2009-07-26 10:10:08 +00:00
Torbjörn Andersson
7d238d8779 Make sure that "buf" is properly terminated. Actually, we could probably get
rid of "buf" completely, and replace it with face = syncChar[p] - '0', assuming
that syncChar only contains digits. But for now, let's make a minimal change.
This might fix bug #2826611 ("DRASCULA: Crash when smashing church window").

svn-id: r42776
2009-07-25 17:48:51 +00:00
Torbjörn Andersson
0e2c8b9be5 Don't hog the CPU while waiting for the player to pick a conversation option.
svn-id: r42757
2009-07-25 13:17:31 +00:00
Torbjörn Andersson
2e13d89233 Added word-wrapping to Drascula's conversation options. Fixes bug #2826607.
svn-id: r42755
2009-07-25 13:07:50 +00:00
Johannes Schickel
7e71865e91 Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
svn-id: r42751
2009-07-25 12:59:46 +00:00
Eugene Sandulenko
1bd6f6c99f Added game GUI options to advancedDetector and updated all engines
svn-id: r41272
2009-06-06 17:56:41 +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
Eugene Sandulenko
d116a94e2b Normalized types for several variables. Formatting
svn-id: r40521
2009-05-13 11:59:49 +00:00
Eugene Sandulenko
17a68490be Replace verb numbers with constants in selectVerb() call
svn-id: r40476
2009-05-12 10:02:18 +00:00
Jordi Vilalta Prat
047f116515 Renamed MetaEngine::getCopyright() to getOriginalCopyright() to better match the meaning of the returned string, as discussed some time ago in scummvm-devel
svn-id: r39132
2009-03-05 12:04:58 +00:00
Max Horn
dd98126423 Engines: Fused several init&go methods into a single run method
svn-id: r39003
2009-03-01 04:42:46 +00:00
Max Horn
3fcbda829a Merged Engine::go() and ::init() into a new run() method (currently implemented by calling the existing init&go methods; to be cleaned up by engine authors
svn-id: r39002
2009-03-01 04:30:55 +00:00
Johannes Schickel
5417f6bacb - Replace OSystem::clearScreen with OSystem::fillScreen as discussed on -devel.
- Update BaseBackend and DC port to properly implement OSystem::fillScreen (now only PalmOS has to be updated).
- Update all client code which relied on OSystem::clearScreen so far.

svn-id: r38304
2009-02-15 21:20:21 +00:00
Willem Jan Palenstijn
3f39213335 ignore any keypresses in the volume control dialog
svn-id: r38183
2009-02-14 22:46:54 +00:00
Max Horn
28cf213605 Moved AdvancedDetector from common/ to engines/
svn-id: r36132
2009-01-29 22:13:01 +00:00
Max Horn
ac59693be2 A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
svn-id: r36127
2009-01-29 05:26:12 +00:00
Filippos Karapetis
ad3ee36805 Got rid of updateAnim2()
svn-id: r35747
2009-01-05 20:17:33 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Torbjörn Andersson
87db0af8a0 Removed unused variable.
svn-id: r35223
2008-12-03 19:20:59 +00:00
Filippos Karapetis
157e051280 Applied wjpalenstijn's patch to fix bug #2111826 - "DRASCULA: Inserting save game names lags"
svn-id: r35221
2008-12-03 17:35:37 +00:00
Filippos Karapetis
b471aab57d Make sure that savegame names are 0-terminated
svn-id: r35220
2008-12-03 16:44:46 +00:00
Filippos Karapetis
29f59d07f4 Simplify line reading with the simpler readLine(), instead of readLine_NEW
svn-id: r35216
2008-12-03 11:47:57 +00:00
Filippos Karapetis
e7050a0c65 readLine_OLD -> readLine_NEW
svn-id: r35213
2008-12-03 08:59:12 +00:00
Johannes Schickel
2ef8a32a01 Fixed various g++ warnings ("format not a string literal and no format arguments").
svn-id: r35096
2008-11-16 20:20:31 +00:00
Johannes Schickel
5a0556f09c Committed my patch #2123680 "SDL: Backend transaction / rollback support".
svn-id: r35062
2008-11-14 22:08:10 +00:00
Max Horn
40136f2590 Switched various Engine APIs to use Common::Error
svn-id: r34916
2008-11-06 17:05:54 +00:00
Eugene Sandulenko
c7dd0bc853 Use better "silence" without clicks when speech is disabled.
svn-id: r34676
2008-09-28 22:19:11 +00:00
Eugene Sandulenko
294b953843 - Renamed withVoices to _subtitlesDisabled as it reflect the true meaning.
- Allowed to disable subtitles from options dialogs including RTL.

svn-id: r34675
2008-09-28 22:07:16 +00:00
Eugene Sandulenko
a2ddc7ffa2 Fix bug #2043489: DRASCULA: Cannot disable speech
svn-id: r34674
2008-09-28 21:53:14 +00:00
Max Horn
bf76057ec4 Removed tons of unused 'length' variables, to silence compiler warnings
svn-id: r34585
2008-09-16 20:12:25 +00:00
Filippos Karapetis
6a4d96649e - Moved some includes away from drascula.h
- Moved grr() to talk.cpp
- Removed the unnecessary parameter length from isTalkFinished()

svn-id: r34577
2008-09-16 11:49:40 +00:00
Filippos Karapetis
3bffca569f Fixed some glitches in the last part of Von Braun's story
svn-id: r34575
2008-09-16 10:53:57 +00:00
Filippos Karapetis
d95e0059a2 Cleaned up and fixed the cutscene with Von Braun's story. Fixes bugs #2111804 - "DRASCULA: Cut scene bugs" and #2059648 - "DRASCULA: VonBraun's song"
svn-id: r34574
2008-09-16 10:44:07 +00:00
Filippos Karapetis
c36c58ca40 Removed the confirmation speech when a game is saved - it's "99.als" instead of "s99.als", but the main problem is that it's not translated in the English version and it's in Spanish (plus it's creepy and annoying...)
svn-id: r34573
2008-09-16 08:24:42 +00:00
Filippos Karapetis
2748701dbe Assign _lang to the appropriate enum values
svn-id: r34572
2008-09-16 08:12:13 +00:00
Filippos Karapetis
4fced32082 Added a workaround to skip the silence in the beginning and end of file 3.als. Fixes bug #2111815 - "DRASCULA: Voice delayed"
svn-id: r34571
2008-09-16 08:10:08 +00:00
Filippos Karapetis
c655d72f5a - Fixed centerText() to print text at the correct height
- Removed some duplicate code

svn-id: r34569
2008-09-16 07:16:26 +00:00
Max Horn
880bc085b1 Fixed compiler warnings
svn-id: r34567
2008-09-15 22:37:45 +00:00
Filippos Karapetis
2884da1452 Show the blind man's dialog text at a bit better place
svn-id: r34561
2008-09-15 14:35:11 +00:00
Filippos Karapetis
7cac97629a Remove a workaround in textFitsCentered(). The blind man's dialog is a bit better placed now
svn-id: r34560
2008-09-15 14:17:51 +00:00
Filippos Karapetis
8a9dd3345e Fixed the phrase told by the protagonist when he talks to the blind man the second time
svn-id: r34559
2008-09-15 13:45:10 +00:00
Filippos Karapetis
7cf7f4bbf6 Rewrote the very confusing centerText() function into something that makes more sense, and matches the way that the original printed text on screen (in most cases)
Fixes bugs #2102657 - "DRASCULA: Crash when talking to the piano player" and #2111820 - "DRASCULA: Dialog texts too long"

svn-id: r34558
2008-09-15 13:37:28 +00:00
Willem Jan Palenstijn
c8eeae8d4d Big patch changing semantics of ReadStream::eos():
eos() now only returns true _after_ trying to read past the end of the stream.

This has a large potential for regressions. Please test!

svn-id: r34549
2008-09-14 22:28:53 +00:00
Filippos Karapetis
371af75374 Slight cleanup of centerText()
svn-id: r34531
2008-09-14 18:30:08 +00:00
Filippos Karapetis
8316aba03d Fix for bug #2110375 - "DRASCULA: Mouse visible in screen saver", a regression from moving mouse handling to OSystem
svn-id: r34526
2008-09-14 16:21:31 +00:00
Torbjörn Andersson
b86a047164 Indentation.
svn-id: r34513
2008-09-13 15:23:23 +00:00
Filippos Karapetis
cbf561a0a0 - Moved more animation data inside drascula.dat
- Merged copyRect and copyRectClip
- Added enums for all the possible character directions and removed duplicate directions
- Extended the talk sequence commands a bit
- Removed unnecessary buffer faceBuffer and the unneeded casts between byte * and char * that were used

svn-id: r34503
2008-09-12 12:54:16 +00:00
Filippos Karapetis
6fd2cb99db Cleanup
svn-id: r34494
2008-09-11 15:35:56 +00:00
Filippos Karapetis
a12e2b8037 - Merged openDoor() and closeDoor()
- Cleaned up updateDoor()
- Bugfixes to exitRoom() and gotoObject()
- Moved cursor-related functions to interface.cpp
- alapuertakeva -> roomExits

svn-id: r34493
2008-09-11 14:49:04 +00:00
Filippos Karapetis
224f95537b Code optimizations from Fingolfin
svn-id: r34491
2008-09-11 12:04:45 +00:00
Filippos Karapetis
c6af2e81e8 Cleanup
svn-id: r34490
2008-09-11 09:37:42 +00:00
Filippos Karapetis
02aad34ec7 Fixed the hotspot for the crosshair cursor
svn-id: r34489
2008-09-11 09:33:15 +00:00
Filippos Karapetis
fa3d3e3643 - The game's cursor is now handled via ScummVM's cursor manager, instead of the game itself (this means that there might be regressions where the cursor is visible when it shouldn't be)
- Removed the textSurface pointer, which was used in the Spanish version. Non-Spanish versions of the game hold the font data in the tableSurface buffer (which contains picture 96). The font data for Spanish versions is in picture 974. Now both versions load their font data from the tableSurface buffer
- hay_que_load -> loadedDifferentChapter
- Merged withoutVerb() and selectVerb()
This is a big change, it might lead to regressions!

svn-id: r34488
2008-09-11 09:31:45 +00:00
Filippos Karapetis
77cd9d6230 Removed the unused variable changeColor
svn-id: r34480
2008-09-10 13:06:40 +00:00
Filippos Karapetis
f5fecc864f Merged all the methods to assign and set default palettes
svn-id: r34479
2008-09-10 12:03:42 +00:00
Filippos Karapetis
3202ef4dd1 Reduced game memory usage by about 400KB by only loading the current language strings, not all strings
svn-id: r34472
2008-09-10 08:25:12 +00:00
Filippos Karapetis
932399481a - Cleanup and simplification
- Moved several simple animations out of animation.cpp
- Moved some animations with talk sequences inside drascula.dat
- A new version of drascula.dat is needed (will be uploaded shortly)

svn-id: r34464
2008-09-09 15:59:06 +00:00
Filippos Karapetis
2ddadd7a45 Cleanup of exitRoom()
svn-id: r34463
2008-09-09 12:57:57 +00:00
Filippos Karapetis
d829f40f08 Cleanup
svn-id: r34462
2008-09-09 12:57:12 +00:00
Filippos Karapetis
dc304dbde2 Cleanup. Simplified converse()
svn-id: r34460
2008-09-09 11:20:34 +00:00
Max Horn
57e724bfc3 Renamed SeekableReadStream::readLine to SeekableReadStream::readLine_OLD; added a new alternate SeekableReadStream::readLine() instead
svn-id: r34315
2008-09-03 17:53:25 +00:00
Filippos Karapetis
de64aa9c4a Document some animations
svn-id: r34190
2008-08-27 10:00:32 +00:00
Filippos Karapetis
d431bfa137 Removed some unneeded sanity checks that have been introduced with the latest cleanups
svn-id: r34183
2008-08-26 10:59:59 +00:00
Filippos Karapetis
dbbfaa4c83 talk_dr_grande -> talk_drascula_big
talk_baul -> talk_trunk

svn-id: r34182
2008-08-26 08:35:02 +00:00
Filippos Karapetis
0a2a468d83 Simplified several calls to copyBackground()
svn-id: r34181
2008-08-26 08:21:21 +00:00
Filippos Karapetis
3b0aba1c38 Merged talk_vonBraun and talk_vonBraunpuerta
svn-id: r34180
2008-08-26 08:05:36 +00:00
Filippos Karapetis
3a782bfc48 Cleanup
svn-id: r34179
2008-08-26 07:48:19 +00:00
Filippos Karapetis
e2fe740e35 Fix for original game bug with the wall plug in chapter 5.
Fixes bug #2059621 - DRASCULA: Plug bug

svn-id: r34160
2008-08-25 15:58:45 +00:00
Filippos Karapetis
4abc98dfdf Fix for bug #2062024 - "DRASCULA: Error talking with blind man"
svn-id: r34154
2008-08-25 15:07:05 +00:00
Eugene Sandulenko
a64491e905 Italian version now has properly translated verbs area as well as numerous
fixes to object names. So new version of packet.005 was prepared.

svn-id: r34124
2008-08-24 21:31:20 +00:00
Eugene Sandulenko
9521b9a12a Fix inventory.
svn-id: r34122
2008-08-24 21:28:20 +00:00
Filippos Karapetis
8b48de9949 Fix for bug #2057664 - "DRASCULA: No GUI warning when playing from CD"
svn-id: r34030
2008-08-19 10:12:35 +00:00
Filippos Karapetis
148ef16d8b Fixed regression from commit #33576. Fixes bug #2056282 - "DRASCULA: can't use inventory objects"
svn-id: r34028
2008-08-19 10:05:07 +00:00
Eugene Sandulenko
19b6334418 Patch #2045543: Possible fix for Drascula's decodeRLE()
svn-id: r33973
2008-08-17 18:58:23 +00:00
Torbjörn Andersson
9d0b0523cf Fixed a bunch of Valgrind warnings (mostly uninitialised variables, but also an
invalid free()), so that I can start and quit the game without any unexpected
warnings. (The obvious next step, of course, would be to actually *play* the game
for a bit...)

svn-id: r33766
2008-08-10 18:44:00 +00:00
Eugene Sandulenko
327ae17095 Add checksums for ScummVM repacked Italian and Spanish versions.
svn-id: r33761
2008-08-10 17:35:42 +00:00
Kostas Nakos
df12c19dad address the ignored events and bad inventory screen handling 'features'
svn-id: r33758
2008-08-10 17:15:30 +00:00
Kostas Nakos
cb6cbc69d3 hint the backend to show the VK
svn-id: r33756
2008-08-10 17:13:24 +00:00
Eugene Sandulenko
c49e7ab73f Fix bug #2011470: "DRASCULA: slowdown when you hold mouse buttons"
svn-id: r33576
2008-08-03 12:02:09 +00:00
Eugene Sandulenko
c88c69f357 Fix bug #2017432: "DRASCULA: Typing is slow when you save a game"
svn-id: r33574
2008-08-03 11:42:05 +00:00
Torbjörn Andersson
4984a28ca5 Fixed #2021902 ("DRASCULA: Can't adjust the volume inside the game"). I can't
verify that this matches the original behaviour, but at least it's better now.

svn-id: r33558
2008-08-03 07:40:04 +00:00
Eugene Sandulenko
7e808d7714 Fix bug #2007170: "DRASCULA: No Spaces in SaveGames Names"
svn-id: r33541
2008-08-02 21:22:05 +00:00
Eugene Sandulenko
4d10465cdf Fix crash when drascula.dat file is missing
svn-id: r33537
2008-08-02 21:05:46 +00:00
Max Horn
bd296a45fa Fixed unitialized variables
svn-id: r32865
2008-07-01 10:33:25 +00:00
Filippos Karapetis
ef07d7e8a7 Added patch from bug report #2001189 - "DRASCULA: Wrong intro music in Spanish version"
svn-id: r32783
2008-06-25 12:02:34 +00:00
Filippos Karapetis
9654ee4fa3 Possible fix for (for the drascula engine) for bug #2001583 - "WINCE: CRUISE and DRASCULA engines can not be compiled"
svn-id: r32777
2008-06-25 08:36:07 +00:00
Filippos Karapetis
8541fb5148 Possible fix for bug #1979086 - "DRASCULA: Wrong language detection(?) and crash"
svn-id: r32728
2008-06-17 21:52:58 +00:00
Filippos Karapetis
cca355acd7 Removed duplicate code
svn-id: r32727
2008-06-17 18:27:03 +00:00
Filippos Karapetis
6fa6a2fbca Pressing enter when entering the name of a save game should save that game
svn-id: r32661
2008-06-10 22:41:41 +00:00
Filippos Karapetis
b652c20114 Fixed regression in the pendulum room, preventing the player from selecting John's hands (new version of drascula.dat needed)
svn-id: r32657
2008-06-10 22:14:47 +00:00
Filippos Karapetis
bdfdf0e7b3 The static arrays in drascula.dat contain signed integers as well
svn-id: r32651
2008-06-10 21:07:11 +00:00
Filippos Karapetis
985903a071 Use the array sizes loaded from drascula.dat, instead of ARRAYSIZE
svn-id: r32650
2008-06-10 21:06:39 +00:00
Filippos Karapetis
e03bd801d6 Fixed character walking in room 14 (the bar, right after BJ is kidnapped). This should fix the issues with the pianist in bug report #1979989 - "DRASCULA : Lip sync error when talking to pianist"
svn-id: r32648
2008-06-10 20:19:44 +00:00
Filippos Karapetis
c51b11e862 verbo -> verb
svn-id: r32645
2008-06-10 18:56:59 +00:00
Filippos Karapetis
930ba6d02d drawSurface1 -> bgSurface
svn-id: r32644
2008-06-10 18:54:32 +00:00
Filippos Karapetis
aac3270de1 endianess fixes
svn-id: r32639
2008-06-09 18:03:11 +00:00
Filippos Karapetis
a9c93a4be9 Fixed regression from commit #32636, leading to a crash
svn-id: r32638
2008-06-09 18:02:09 +00:00
Eugene Sandulenko
50c62c7eac Properly initialize and free memory for texts
svn-id: r32636
2008-06-09 14:45:45 +00:00
Filippos Karapetis
661e507772 Properly initialize and destroy the different arrays read from drascula.dat. Also, fixed a crash that occurred from the last commit
svn-id: r32635
2008-06-09 14:36:58 +00:00
Filippos Karapetis
9e9c38c689 Bugfix to read the first array element correctly by sev
svn-id: r32634
2008-06-09 14:23:04 +00:00
Filippos Karapetis
a353776f2f - drascula.dat is now read completely
- Removed the rest of the game static data (staticdata.h)
- Some naming convention fixes (added underscore to some shared variables)
- Renamed objeto -> object

svn-id: r32628
2008-06-09 10:11:42 +00:00
Eugene Sandulenko
5c44c48dd0 Restore apostrophe hack.
svn-id: r32623
2008-06-08 22:11:18 +00:00
Eugene Sandulenko
e20617966c Load all texts from drascula.dat
svn-id: r32622
2008-06-08 21:59:12 +00:00
Filippos Karapetis
458c7185d9 quitGame() -> endChapter()
svn-id: r32620
2008-06-08 16:42:12 +00:00
Filippos Karapetis
069ffd4b70 Removed the MiVideoSSN buffer, using screenSurface instead. Added a FIXME for decodeOffset (as it can incorrectly write beyond 64000 bytes, up to 64256)
svn-id: r32619
2008-06-08 15:56:48 +00:00
Filippos Karapetis
c37c19a8cf pointer -> memPtr
Des_RLE -> decodeRLE
Des_OFF -> decodeOffset
Lenght -> length

Removed duplicate code for RLE decoding

svn-id: r32617
2008-06-08 14:59:52 +00:00
Filippos Karapetis
f45939a90a Use mixVideo() in showFrame() and some capitalization fixes
svn-id: r32616
2008-06-08 14:17:35 +00:00
Filippos Karapetis
1b233db851 - Removed the AuxBuffOrg and AuxBuffDes buffers
- Renamed loadPCX -> showFrame
- Removed WaitForNext()
- Cleaned up the PCX frame loading code

svn-id: r32615
2008-06-08 14:11:22 +00:00
Filippos Karapetis
dcde2f7a96 The pendulumSurface pointer is only used in update_102()
svn-id: r32614
2008-06-08 11:26:48 +00:00
Filippos Karapetis
5880defea4 Removed the useless pcxBuffer buffer and auxPun pointer and fixed an off-by-one error in the PCX decoding routine
svn-id: r32613
2008-06-08 11:10:00 +00:00
Filippos Karapetis
af74726420 Grouped all the different draw buffers/pointers together
svn-id: r32612
2008-06-08 10:56:44 +00:00
Torbjörn Andersson
99b7c8eb43 Use _system->quit() instead of exit(0).
svn-id: r32611
2008-06-08 07:05:22 +00:00
Filippos Karapetis
6c5d005edc Cleanup
svn-id: r32609
2008-06-08 03:09:21 +00:00
Filippos Karapetis
ee1dfa3f3d Initialize _charMap to avoid crash when drascula.dat doesn't exist
svn-id: r32607
2008-06-08 02:00:34 +00:00
Eugene Sandulenko
8a0566de14 Add stubs for .dat file loading
svn-id: r32605
2008-06-07 21:02:03 +00:00
Eugene Sandulenko
09597d028c WIP of drascula.dat loading.
DISCLAIMER: this is too far from finished. From now drascula.dat is required to
run the game, but in the meantime you have to make it by yourself. Do not 
update DRASCULA_DAT_VER as I want it to be version 1 once all loading will
be implemented, but that may lead to some changes similar to r32602.

svn-id: r32603
2008-06-07 20:47:52 +00:00
Eugene Sandulenko
7a0feca9e2 Add new files to makefile.
svn-id: r32600
2008-06-07 19:44:00 +00:00
Eugene Sandulenko
e14f81391c Shuffled around more code. Now the files look more manageable.
svn-id: r32599
2008-06-07 19:40:43 +00:00
Eugene Sandulenko
681f331895 Another fix, now to German texts.
svn-id: r32597
2008-06-07 18:43:20 +00:00
Eugene Sandulenko
a78c2251ca Ooops. Several missing colons in the texts which lead to wrong messages were spotted and fixed.
svn-id: r32596
2008-06-07 18:38:44 +00:00
Eugene Sandulenko
f6a1a89d04 Patch #1986992: "DRASCULA: correcting errors"
svn-id: r32592
2008-06-07 14:45:01 +00:00
Filippos Karapetis
b28b0fe6d7 Cleanup
estanteria -> bookcase

svn-id: r32591
2008-06-07 14:15:56 +00:00
Filippos Karapetis
d3adb312c9 Fixed regression from last commit
svn-id: r32590
2008-06-07 11:43:54 +00:00
Filippos Karapetis
7192c88b19 Used enums for igor talker types
Merged a lot of code of talk_pianist, talk_drunk, talk_werewolf and talk_mus

svn-id: r32589
2008-06-07 11:31:40 +00:00
Filippos Karapetis
67765c6559 Simplified talk_hacker
svn-id: r32588
2008-06-07 10:10:40 +00:00
Eugene Sandulenko
18aec42f19 Fix apostrophe rendering in conversation texts.
svn-id: r32587
2008-06-06 20:58:32 +00:00
Eugene Sandulenko
3d072b4402 Another English fix from sanguineh
svn-id: r32586
2008-06-06 20:21:06 +00:00
Eugene Sandulenko
58dd060ebc Slighly modified patch #1985341: "DRASCULA: Hopefully my last batch of english updates"
svn-id: r32585
2008-06-06 20:12:51 +00:00
Filippos Karapetis
fbf319dbfb Partially reverted the changes to for loops in my last commit. It's not wise to call strlen() on each loop iteration...
svn-id: r32584
2008-06-06 19:52:09 +00:00
Filippos Karapetis
00dba1cebc - Cleanup
- Removed the unneeded AuxBuffLast buffer (this one is really not necessary :) )
- Simplified some more room actions

svn-id: r32583
2008-06-06 19:37:36 +00:00
Eugene Sandulenko
3b1e4fc15f Move more room code into roomActions[].
svn-id: r32582
2008-06-06 19:29:59 +00:00
Eugene Sandulenko
c6f72c52df Partially reverted r32580. That surface is used by Spanish version.
svn-id: r32581
2008-06-06 19:17:21 +00:00
Filippos Karapetis
31bb8c01c7 Removed the useless textSurface buffer
frame_x -> frameX
candleX, candleY, pianistX and drunkX are used in more than one place

svn-id: r32580
2008-06-06 18:28:50 +00:00
Filippos Karapetis
7a05f382c2 Initialize roomNumber correctly
svn-id: r32579
2008-06-06 17:58:08 +00:00
Filippos Karapetis
7c4e375b39 - Cleaned up the code that makes the in-game screensaver pop up
- Grouped all the frame_* variables
- Removed the unused mouseY_ant variable

Renamed:
x_dr/y_dr -> drasculaX/drasculaY
x_bj/y_bj -> bjX/bjY
vb -> VonBraun
wolf -> werewolf
pos_cabina -> cabinPos
dir_lectura -> pal
plt -> colorCount
palNegra -> blackPalette
cont_sv -> framesWithoutAction

svn-id: r32577
2008-06-06 14:50:19 +00:00
Filippos Karapetis
266cf3b760 Cleanup
svn-id: r32574
2008-06-06 10:01:14 +00:00
Filippos Karapetis
fa8981e1e2 Simplified the room preupdaters and updaters
svn-id: r32573
2008-06-06 09:53:33 +00:00
Eugene Sandulenko
a478ef04ae Fix regressions introduced in r32571
svn-id: r32572
2008-06-06 09:18:49 +00:00
Filippos Karapetis
547e25667b Removed the empty specialized parsers for rooms 19, 44, 61 and 63
svn-id: r32571
2008-06-06 07:48:00 +00:00
Filippos Karapetis
bc76980ae6 Added the rest of the rooms to the room parser
svn-id: r32570
2008-06-06 07:42:00 +00:00
Torbjörn Andersson
5d46aa2b7f Removed left-over debugging.
svn-id: r32569
2008-06-06 06:59:44 +00:00
Torbjörn Andersson
fe8ec2ef10 Only try to play a sound file if the file could be found. (Otherwise, it looks
like it will try to use the most recently opened file, which is probably not a
sound at all.)

svn-id: r32568
2008-06-06 06:58:37 +00:00
Eugene Sandulenko
095c1544db Further unification of room code.
svn-id: r32567
2008-06-06 06:35:25 +00:00
Filippos Karapetis
3c7e0f5f8d Fixed regression: rooms 0, 56 and 60 are not called by the default room parser (13 and 21 too, but there are no default actions associated with them)
svn-id: r32562
2008-06-05 21:12:02 +00:00
Eugene Sandulenko
b7ac2f99f6 Optimize a bit roomParse, though ideal would be a binary search, but I am
too lazy for that.

svn-id: r32561
2008-06-05 20:35:45 +00:00
Eugene Sandulenko
35cdc7aae4 Converted most of checkAction() to pseudorooms 200 and 201, putting
them into roomActions.

svn-id: r32560
2008-06-05 20:28:50 +00:00
Eugene Sandulenko
9cbf46a7a4 Merged all roomXXActions into single array. Thus simplified room parsers.
svn-id: r32559
2008-06-05 19:29:30 +00:00