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
0a2a468d83
Simplified several calls to copyBackground()
...
svn-id: r34181
2008-08-26 08:21:21 +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
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
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
Kostas Nakos
df12c19dad
address the ignored events and bad inventory screen handling 'features'
...
svn-id: r33758
2008-08-10 17:15:30 +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
4d10465cdf
Fix crash when drascula.dat file is missing
...
svn-id: r33537
2008-08-02 21:05:46 +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
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
930ba6d02d
drawSurface1 -> bgSurface
...
svn-id: r32644
2008-06-10 18:54:32 +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
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
dcde2f7a96
The pendulumSurface pointer is only used in update_102()
...
svn-id: r32614
2008-06-08 11:26:48 +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
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
e14f81391c
Shuffled around more code. Now the files look more manageable.
...
svn-id: r32599
2008-06-07 19:40:43 +00:00
Eugene Sandulenko
f6a1a89d04
Patch #1986992 : "DRASCULA: correcting errors"
...
svn-id: r32592
2008-06-07 14:45:01 +00:00
Eugene Sandulenko
18aec42f19
Fix apostrophe rendering in conversation texts.
...
svn-id: r32587
2008-06-06 20:58:32 +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
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
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
Filippos Karapetis
b9516aa80e
escoba -> runCurrentChapter
...
svn-id: r32557
2008-06-05 15:15:20 +00:00
Filippos Karapetis
5f573fea11
Added enums for all items up to chapter 3 and some of chapter 4
...
svn-id: r32556
2008-06-05 15:03:48 +00:00
Max Horn
dd4a0efe02
Fix compiler warning (to clear a C-string, do not abuse sprintf like that)
...
svn-id: r32555
2008-06-05 14:02:49 +00:00
Filippos Karapetis
bfd4fc910e
- Rewrote the way room updaters, preupdaters and room parsers are called and added debug output when they're called
...
- Simplified calls to converse()
- Removed the useless para_codificar buffers
- Renamed checkFlag -> checkAction
svn-id: r32554
2008-06-05 13:23:57 +00:00
Filippos Karapetis
fe2fcbf2d5
- Removed the unused hay_sb variable (originally, it was meant to check if the sound is active or not)
...
- mesa -> volumeControls
- Cleanup of volumeControls()
- fliplay -> playFLI, and removed openSSN() and EndSSN()
- Some translations:
button_izq -> leftMouseButton
button_dch -> rightMouseButton
animation_rayo -> animation_ray
hueso -> bone
vuela -> fly
svn-id: r32552
2008-06-05 08:25:29 +00:00
Filippos Karapetis
1869141f04
saves -> saveLoadScreen
...
svn-id: r32546
2008-06-04 19:27:14 +00:00
Filippos Karapetis
f44d39494d
Clear "select" when the save/load screen pops up, to avoid having garbage shown in the selected game slot
...
svn-id: r32545
2008-06-04 19:24:50 +00:00
Filippos Karapetis
8d4cf05ccc
Reduced the delays in Drascula's save/load screen to make it more responsive (since delay() waits for double the time internally)
...
svn-id: r32544
2008-06-04 19:21:17 +00:00
Filippos Karapetis
f21a15cbbb
Removed decompressPic() and fixed the animation of Von Braun and his glass cage
...
svn-id: r32541
2008-06-04 17:41:40 +00:00