Commit Graph

6819 Commits

Author SHA1 Message Date
Sven Hesse
8da68b2964 Script variables are now always stored in the game version's native endianess.
This should make Woodruff playable on big-endian systems.

svn-id: r32352
2008-05-28 21:15:11 +00:00
Benjamin Haisch
885fa54f28 Split Object/GameDatabase into engine version specific classes
svn-id: r32349
2008-05-28 20:16:22 +00:00
Benjamin Haisch
df0e072a1b Fixed a crash in LGOP2 when attempting to get a sprite item from an empty array.
svn-id: r32348
2008-05-28 20:12:01 +00:00
Travis Howell
16b0905bb0 Remove debug left over.
svn-id: r32338
2008-05-28 13:02:33 +00:00
Travis Howell
edc731e04f The hard coded string translations for The Dig only apply to subtitles, and not speech.
svn-id: r32337
2008-05-28 13:00:41 +00:00
Kari Salminen
51e4e487b1 Implemented opcode 0x9A (o2_wasZoneChecked).
svn-id: r32336
2008-05-28 13:00:27 +00:00
Kari Salminen
f0195a01f6 Fix Operation Stealth's opcode 0x82's parameter list (Verified with DOS version's disassembly).
svn-id: r32335
2008-05-28 12:05:40 +00:00
Travis Howell
292bc04389 Update the hard coded string translations in The Dig.
svn-id: r32334
2008-05-28 02:55:42 +00:00
Johannes Schickel
691306f0b7 Fixed KyraEngine_v1::snd_stopVoice and KyraEngine_v1::snd_voiceIsPlaying implementations.
svn-id: r32330
2008-05-27 21:04:27 +00:00
Kari Salminen
c0f1b7fe66 Added a few more comments about Operation Stealth's opcodes (Redundancies, Future Wars's opcodes' end point).
svn-id: r32328
2008-05-27 19:36:39 +00:00
Kari Salminen
17fd16a38e Went through Operation Stealth's opcode list and added TODOs for naming all unknown functions properly and some notes about opcode redundancies.
svn-id: r32327
2008-05-27 19:25:04 +00:00
Filippos Karapetis
bf8dfb67e1 More simplifications to the talk functions
svn-id: r32326
2008-05-27 16:13:41 +00:00
Filippos Karapetis
2675cd38a6 Fixed the two animation FIXMEs
svn-id: r32325
2008-05-27 16:02:07 +00:00
Filippos Karapetis
4512958d74 longitud -> length
respuesta -> answer
objetos_que_tengo -> inventoryObjects
boton -> button
cuadrante -> quadrant
distancia -> distance
juego -> game
frase -> phrase
suena -> sound
usado -> used
responde -> response
puesto -> position

svn-id: r32321
2008-05-27 12:22:34 +00:00
Filippos Karapetis
de88eb33b5 objeto_que_lleva -> pickedObject
Removed the verb defines and replaced them with appropriate enums

svn-id: r32320
2008-05-27 12:02:26 +00:00
Filippos Karapetis
7263ec4763 Rewrote some more room logic
svn-id: r32319
2008-05-27 11:49:36 +00:00
Filippos Karapetis
7068ec9b71 Every time strcmp is abused, a baby koala cries...
Changed loads of strcmp's to integer comparisons. There might be two possible regressions (marked with a FIXME) in animation_2_1() and animation_9_6(), which need to be tested

Also, fixed a silly regression I made in commit #32312 in getLine()

svn-id: r32317
2008-05-27 09:03:22 +00:00
Filippos Karapetis
afd44c95d9 Changed roomParse to accept an array directly and rewrote some more room logic
svn-id: r32315
2008-05-27 07:45:13 +00:00
Filippos Karapetis
b1217da63f comienza_sound -> playSound
fin_sound -> stopSound
comienza_sound -> playSound
n_puerta -> doorNum
cierra_puerta -> closeDoor

svn-id: r32314
2008-05-27 07:17:15 +00:00
Filippos Karapetis
314ecc5d7d Cleanup of the X_OBJ and Y_OBJ defines
svn-id: r32313
2008-05-27 07:04:56 +00:00
Filippos Karapetis
8e290114d2 palJuego -> gamePalette
x_raton -> mouseX
y_raton -> mouseY

Some slight cleanup

svn-id: r32312
2008-05-27 06:35:00 +00:00
Sven Hesse
a6649af56e Fixed an endian-related issue, making Woodruff controlable on big-endian machines.
It still breaks when switching screens and object videos are mispositioned, though.

svn-id: r32310
2008-05-27 00:03:29 +00:00
Sven Hesse
a0a8e0e690 Fixed Italian Woodruff's MD5
svn-id: r32309
2008-05-26 23:03:17 +00:00
Sven Hesse
59df762f0a More split screen fixes.
I never get tired out those... ;)

svn-id: r32308
2008-05-26 22:02:20 +00:00
Kari Salminen
a43d1e6be0 Changed floating point immediates to single precision (Silences MSVC warning C4305: '+=' : truncation from 'double' to 'float').
svn-id: r32307
2008-05-26 22:01:29 +00:00
Eugene Sandulenko
32eee43bbc Implement built-in screensaver
svn-id: r32306
2008-05-26 21:48:59 +00:00
Sven Hesse
9eed36cc4f Use memmove when source and destination sprite areas overlap in drawSprite()
svn-id: r32305
2008-05-26 21:07:49 +00:00
Eugene Sandulenko
c13fda76d6 Fix leftover 8bit character
svn-id: r32304
2008-05-26 20:19:56 +00:00
Eugene Sandulenko
e45ea7b933 Fix delays against original
svn-id: r32303
2008-05-26 20:18:27 +00:00
Filippos Karapetis
f2e5283fcf Simplified all calls to talk_vb and talk_vbpuerta, together with some more calls to talk()
svn-id: r32302
2008-05-26 20:14:25 +00:00
Filippos Karapetis
7fe39a1470 Cleanup
svn-id: r32301
2008-05-26 19:50:05 +00:00
Filippos Karapetis
f68c1fd00b Cleanup
svn-id: r32300
2008-05-26 19:36:38 +00:00
Filippos Karapetis
9af5cca4e2 Removed a lot of duplicate code, fixed a mistake I made in sprintf
svn-id: r32299
2008-05-26 19:15:36 +00:00
Filippos Karapetis
3469c4821a More simplification to the talk() calls, fixed a shadowing warning
svn-id: r32298
2008-05-26 18:52:25 +00:00
Jordi Vilalta Prat
c6e29f4e4d Disable Drascula's and MADE's dummy fallbackDetect.
svn-id: r32297
2008-05-26 18:18:38 +00:00
Filippos Karapetis
e0051aa140 Started rewriting room logic
svn-id: r32294
2008-05-26 17:50:26 +00:00
Filippos Karapetis
d37be94275 Cleanup
svn-id: r32293
2008-05-26 17:49:32 +00:00
Sven Hesse
7227ddb6fa Changed anim/static PieceDesc loading, to allow for more sanity checks.
This should take care of all invalid reads in renderStatic(), updateStatic() and updateAnim()

svn-id: r32292
2008-05-26 15:29:12 +00:00
Filippos Karapetis
3506624393 Slight cleanup
svn-id: r32290
2008-05-26 14:08:53 +00:00
Kari Salminen
bff1bcd329 Silence MSVC warning C4800.
svn-id: r32288
2008-05-26 12:40:42 +00:00
Johannes Schickel
e92fccfdd9 Formatting.
svn-id: r32285
2008-05-26 12:05:55 +00:00
Filippos Karapetis
eea2aadbd8 Renamed files for consistency
svn-id: r32283
2008-05-26 11:14:30 +00:00
Filippos Karapetis
966239fc52 Code cleanup:
- Removed sagaresnames.h
- Moved all special scenes to scene.h, and named them consistently (e.g. RID_ITE_OVERMAP_SCENE -> ITE_SCENE_OVERMAP)
- Moved all resources which were used by the ITE intro into ite_introproc.cpp
- Removed several defines which were only used once (e.g. the SFX names)
- Reordered the GameResourceDescription resources so that ITE and IHNM specific resources are placed in the end
- Updated the comment about the IHNM Mac music
- Changed the callocs in loadPalAnim to mallocs, like in the rest of the code
- Removed the MEM error

svn-id: r32282
2008-05-26 11:10:46 +00:00
Benjamin Haisch
23da4c5fa2 Fixed graphics decoding bug in Manhole: N&E
svn-id: r32281
2008-05-26 11:07:18 +00:00
Filippos Karapetis
dd6821cbcb Cleanup
svn-id: r32280
2008-05-26 11:03:21 +00:00
Benjamin Haisch
aa02a6758a - Hopefully fixed 'responsiveness' of the mouse cursor/event handling
- Disabled auto dirty rects which caused major gfx problems
- Added default mouse cursor for Manhole: N&E
- Fixed sound rate for Manhole: N&E
- Don't automatically show mouse cursor when a new cursor was loaded

svn-id: r32279
2008-05-26 07:27:46 +00:00
Benjamin Haisch
365513d9e4 Implemented visual effects 2 and 15
svn-id: r32278
2008-05-26 07:20:23 +00:00
Filippos Karapetis
ba6f9ab9a8 Possible fix for bug #1949230: "M4: compilation error"
svn-id: r32277
2008-05-26 07:18:06 +00:00
Sven Hesse
d94bfc66ad Ooops, made frame skipping for A/V sync correction work again (instead of locking up)
svn-id: r32276
2008-05-26 05:17:21 +00:00
Jordi Vilalta Prat
2862a30dac Fixed some code formatting thanks to LordHoto
svn-id: r32275
2008-05-26 00:28:48 +00:00