Filippos Karapetis
c153aaeea9
Wrapped up talk_drunk
...
Some cleanup
dir_escritura -> targetSurface
targetScreen -> targetSurface
plt (in decompressPic) -> colorCount
funcion -> function
svn-id: r32394
2008-05-30 10:55:43 +00:00
Kari Salminen
94d1e7effb
Implemented opcodes 0x04 (o1_mulObjectParam) and 0x05 (o1_divObjectParam).
...
svn-id: r32393
2008-05-30 10:43:21 +00:00
Filippos Karapetis
db0af96fa0
Wrapped up talk_igor_front, talk_igor_door, talk_igor_seated and talk_igor_wig
...
svn-id: r32392
2008-05-30 10:31:47 +00:00
Filippos Karapetis
d0b396f062
Moved SSN frame definitions into their own enum and removed unused definitions for the escape and F1-F10 keys
...
svn-id: r32391
2008-05-30 10:21:29 +00:00
Filippos Karapetis
d261c93049
More simplification of talk code. Moved talk_dr_grande() from animation.cpp to talk.cpp
...
svn-id: r32390
2008-05-30 10:14:27 +00:00
Filippos Karapetis
ea276dd177
talk_igor_frente -> talk_igor_front
...
svn-id: r32389
2008-05-30 10:04:39 +00:00
Filippos Karapetis
792286874a
talk_igorpuerta -> talk_igor_door
...
talk_igor_peluca -> talk_igor_wig
and replaced some unneeded if statements with atoi
svn-id: r32388
2008-05-30 10:02:56 +00:00
Filippos Karapetis
64def1b562
Big simplification and cleanup to the animation code
...
svn-id: r32387
2008-05-30 09:45:00 +00:00
Eugene Sandulenko
4eed36f88c
Fix compilation
...
svn-id: r32386
2008-05-30 09:28:52 +00:00
Eugene Sandulenko
0516f550c3
Wrap up talk_taber2()
...
svn-id: r32385
2008-05-30 08:56:07 +00:00
Eugene Sandulenko
9b7e8fb704
Wrap up talk_taber2()
...
svn-id: r32384
2008-05-30 08:55:47 +00:00
Eugene Sandulenko
8c9205babd
Wrap up rest of talk() calls
...
svn-id: r32383
2008-05-30 08:48:01 +00:00
Eugene Sandulenko
4ae97b90cb
Remove obsolete comment
...
svn-id: r32382
2008-05-30 08:30:40 +00:00
Filippos Karapetis
54a28afe0c
cara -> face
...
componente -> component
palFondo -> bgPalette
Capitalization
svn-id: r32381
2008-05-30 08:28:54 +00:00
Filippos Karapetis
6397af21dc
diferencia -> difference
...
pos_pixel -> pixelPos
hare_se_mueve -> characterMoved
pixel_x/pixel_y -> pixelX/pixelY
vez() -> getTime()
menu_sin_volcar() -> showMenu()
Removed unused function codifica()
svn-id: r32380
2008-05-30 08:14:01 +00:00
Filippos Karapetis
8d16e9330a
Untangling spaghetti code: removed several goto statements
...
svn-id: r32379
2008-05-30 08:00:42 +00:00
Filippos Karapetis
1ca29c1796
Some cleanup, translated an error message
...
svn-id: r32378
2008-05-30 07:26:55 +00:00
Filippos Karapetis
4cc64e2b63
anima -> animate
...
leng -> dataSize, and removed it from the global variables (it's only used in animate())
svn-id: r32377
2008-05-30 07:24:32 +00:00
Filippos Karapetis
54e631a903
rompo -> doBreak
...
Removed unused variable rompo2
svn-id: r32376
2008-05-30 07:19:09 +00:00
Filippos Karapetis
eb28418d4b
Changed color defines to more meaningful names in an enum
...
svn-id: r32375
2008-05-30 07:16:17 +00:00
Filippos Karapetis
8aa1b04043
dir_dibujo -> drawSurface
...
dir_hare_fondo -> backSurface
dir_mesa -> tableSurface
dir_hare_dch -> extraSurface (unsure about this one)
dir_zona_pantalla -> screenSurface
dir_hare_frente -> frontSurface
dir_texto -> textSurface
dir_pendulum -> pendulumSurface
svn-id: r32374
2008-05-30 07:09:36 +00:00
Eugene Sandulenko
3c827020a6
Fix regression introduced by last cleanup
...
svn-id: r32373
2008-05-30 05:35:47 +00:00
Filippos Karapetis
92bf1817cb
Loads of Spanish translations with the help of timofonic (thanks!).
...
Unified some variable styles
svn-id: r32372
2008-05-29 22:34:03 +00:00
Kari Salminen
b7deac38b3
Added check in modifyObjectParam's start (Verified with FW & OS PC versions' disassemblies). Also removed superfluous default-case, hopefully no compiler will complain about this :).
...
svn-id: r32371
2008-05-29 22:07:25 +00:00
Filippos Karapetis
5396cd5ded
Cleanup
...
svn-id: r32370
2008-05-29 20:35:15 +00:00
Torbjörn Andersson
7833dd87a5
Rewrote dimPalette() so that the dimming is now a "filter" between the Screen
...
class and the backend, i.e. as far as the game engine is concerned the palette
remains unchanged. (This is similar how to the SCUMM engine handles the "noir"
mode in Sam & Max.)
This is one small step towards allowing the game to be paused anywhere.
svn-id: r32369
2008-05-29 20:32:27 +00:00
Filippos Karapetis
3a43916e20
ancho -> width
...
alto -> height
nuevo_ancho -> newWidth
nuevo_alto -> newHeight
suma_x -> totalX
suma_y -> totalY
Removed unneeded variables diferencia_x/diferencia_y
svn-id: r32368
2008-05-29 18:18:38 +00:00
Filippos Karapetis
8363f1294a
More talk related simplifications
...
svn-id: r32367
2008-05-29 18:09:12 +00:00
Filippos Karapetis
7ced1215d4
Fixed a crash that occurs when OS starts
...
svn-id: r32366
2008-05-29 17:58:56 +00:00
Filippos Karapetis
13c8e6d94b
Numbers are mapped in a different order in the game's fonts
...
svn-id: r32365
2008-05-29 16:53:28 +00:00
Filippos Karapetis
eb964d2844
Fixed regression
...
svn-id: r32364
2008-05-29 16:41:49 +00:00
Filippos Karapetis
c2c21ffffb
MirarRaton -> updateEvents
...
espera_soltar -> updateEvents
Some cleanup
svn-id: r32363
2008-05-29 14:14:31 +00:00
Filippos Karapetis
beafc62b0d
puertas_cerradas -> updateDoor
...
saca_objeto -> removeObject
svn-id: r32362
2008-05-29 14:04:47 +00:00
Benjamin Haisch
b9776d46b2
- Implemented opcodes: sfHomeText, sfDrawAnimPic
...
- Comments on unneeded opcodes
- Simplified getting/setting strings in Objects
svn-id: r32361
2008-05-29 12:57:11 +00:00
Kari Salminen
3f91c579fc
Verified most parts of opcode 0x01 (o1_modifyObjectParam) against Future Wars's and Operation Stealth's disassembly (Only part of switch case 3 still left to do).
...
svn-id: r32360
2008-05-29 12:22:14 +00:00
Filippos Karapetis
7a22a63244
Simplified calls to talk_igor_dch, talk_dr_izq and talk_dr_dch
...
Removed loads of font definitions and simplified some of the internal font mapping
svn-id: r32359
2008-05-29 12:17:40 +00:00
Kari Salminen
5779261c16
Tiny comment update (Echec in French means failure).
...
svn-id: r32358
2008-05-29 10:15:39 +00:00
Filippos Karapetis
b844e4bd5a
Implemented visual effects 11 and 13 (inverse of 10 and 12)
...
svn-id: r32356
2008-05-28 23:17:10 +00:00
Sven Hesse
ab6c82a850
Silenced a signed/unsigned comparison warning
...
svn-id: r32355
2008-05-28 22:42:15 +00:00
Benjamin Haisch
4afd19ad0f
Fixed premature stopping of sounds/voices.
...
svn-id: r32354
2008-05-28 22:15:10 +00:00
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
Sven Hesse
6ef8e5238b
Increased _soundSliceLength's accuracy. This fixes the A/V sync problems in Woodruff's intro
...
svn-id: r32274
2008-05-25 23:12:32 +00:00
Sven Hesse
1fcf93875e
Fixed the small static sound in Woodruff's intro video.
...
Interestingly, this does _not_ fix the audio lag, so I was apparently wrong and it's another issue. *g*
This does however fix the glitches in the Last Dynasty intro.
svn-id: r32273
2008-05-25 22:46:16 +00:00
Florian Kagerer
1509a17d3a
typo
...
svn-id: r32271
2008-05-25 14:39:59 +00:00
Florian Kagerer
48d3b34a75
- some pauseEngineIntern() code for the HOF sequence player (not tested)
...
svn-id: r32270
2008-05-25 13:30:18 +00:00
Sven Hesse
da222b1a48
Added a workaround for the nut rolling animation in the administration center in Woodruff
...
svn-id: r32269
2008-05-25 13:02:23 +00:00
Sven Hesse
3f4d22338e
Fixing Bug #1970111 ("WOODRUFF: Close Up not erased")
...
svn-id: r32266
2008-05-25 06:25:16 +00:00
Johannes Schickel
64910f8c5f
Little cleanup.
...
svn-id: r32262
2008-05-24 23:05:01 +00:00
Johannes Schickel
335eb1bf08
Committed my fix for bug #1497437 "KYRA1: Subtitles glitch during 'Speech of the Land'".
...
svn-id: r32260
2008-05-24 22:47:08 +00:00
Johannes Schickel
6866a4e133
- Cleanup
...
- Added support for showing kyra.dat error messages in a dialog
svn-id: r32259
2008-05-24 22:44:15 +00:00
Eugene Sandulenko
f2d72d9473
Patch #1969189 : "CinE renderer rewrite"
...
svn-id: r32257
2008-05-24 22:11:41 +00:00