Arnaud Boutonné
d90c60e879
Fix a regression in the first part of the intro (gitches when the paper and the rat are moving).
...
svn-id: r44518
2009-10-01 12:19:01 +00:00
Paul Gilbert
aba45bfd5f
Reworked of code line in changeExtension that was giving a cppcheck warning
...
svn-id: r44517
2009-10-01 12:12:07 +00:00
Filippos Karapetis
04493d139e
Fixed some potential memory leaks, reported by salty-horse
...
svn-id: r44516
2009-10-01 12:09:02 +00:00
Paul Gilbert
e67b0ef08c
Replaced delete operator with delete[]
...
svn-id: r44514
2009-10-01 12:03:12 +00:00
Willem Jan Palenstijn
7d6848dfa3
SCI: Add some fixmes noted by salty-horse.
...
svn-id: r44513
2009-10-01 11:06:38 +00:00
Willem Jan Palenstijn
5a8b81119b
Fix free/delete/delete[] mismatches. Patch by salty-horse
...
svn-id: r44512
2009-10-01 11:02:23 +00:00
Filippos Karapetis
7d40dde96f
- Removed the toggle for "weak" validations, as there are cases where they fail (e.g. in Longbow), so there is no point in having strict validations
...
- Removed the invalid toggle from kernel signatures - we now never error out on invalid object references, but throw a warning instead
- Simplified determine_reg_type()
svn-id: r44511
2009-10-01 10:57:59 +00:00
Willem Jan Palenstijn
168257df24
SCI: Remove outdated debugging hack.
...
In the past, a negative selector value was used to identify a callk
stack frame. Currently a type of EXEC_STACK_TYPE_KERNEL already does that.
svn-id: r44510
2009-10-01 08:53:10 +00:00
Robert Špalek
24d649b972
Clean up room changing code and support returning from the map.
...
Completely changed the interface, removing unused methods and attributes,
renaming other ones to reflect what they do, and moving some methods into the
private section. Code changing the location, originally scattered over many
pieces of code, has been unified into one place. Remember the previous room
when entering the map so that one can return there.
Also, the event handler processes one event at a time, preventing lost clicks
on touchpads.
svn-id: r44508
2009-10-01 08:32:35 +00:00
Filippos Karapetis
2d29625f0e
Removed an old (and now obsolete) workaround for KQ5
...
svn-id: r44507
2009-09-30 23:27:00 +00:00
Filippos Karapetis
9efc90c8af
Fixed the warning message shown when dummy functions are invoked
...
svn-id: r44506
2009-09-30 23:13:46 +00:00
Filippos Karapetis
30084d72a5
Added a new special reg_t, SIGNAL_REG, for signaling when an error occurs (usually), or to signal success in some special occasions
...
svn-id: r44505
2009-09-30 23:00:03 +00:00
Arnaud Boutonné
96a40e7712
Fascination - Suppress some warnings
...
svn-id: r44504
2009-09-30 22:54:30 +00:00
Filippos Karapetis
86016e4dc5
Changed the list sanity checks to return warnings instead of errors in case of failure - apparently, this can occur in some games, e.g. Longbow and QFG1
...
svn-id: r44503
2009-09-30 22:54:00 +00:00
Filippos Karapetis
bbb2274a7d
- Removed some leftover 16/32bpp color code, as we're always using palette mode now
...
- Simplified the mouse cursor manipulation code
svn-id: r44502
2009-09-30 22:43:29 +00:00
Florian Kagerer
598056ead0
LOL/PC-98: - fixed TIM dialogue button text colors
...
- fixed menu text alignment
svn-id: r44501
2009-09-30 21:46:00 +00:00
Max Horn
aa368806d9
oops
...
svn-id: r44500
2009-09-30 21:12:38 +00:00
Robert Špalek
5ad13a3dff
Fix 2 ValGrind warnings.
...
svn-id: r44499
2009-09-30 21:07:04 +00:00
Florian Kagerer
94572773d0
LOL/PC-98: - fix spell effect colors
...
- fix some font color glitches
svn-id: r44498
2009-09-30 20:42:58 +00:00
Willem Jan Palenstijn
a5d1094dab
SCI: Make kFile error messages slightly more verbose
...
svn-id: r44497
2009-09-30 19:44:03 +00:00
Arnaud Boutonné
f1c76e2dcb
Fascination - Fix a regression in intro (fix of R42171)
...
svn-id: r44496
2009-09-30 19:14:46 +00:00
Max Horn
8ba75fc522
Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
...
svn-id: r44495
2009-09-30 16:16:53 +00:00
Max Horn
25dde91c7c
SCI: Some palette code cleanup
...
svn-id: r44494
2009-09-30 16:06:04 +00:00
Max Horn
cc54ad650d
Remove trailing whitespaces
...
svn-id: r44493
2009-09-30 16:04:21 +00:00
Max Horn
27026f6565
SCI: Replace magic '-42' by an enum
...
svn-id: r44492
2009-09-30 16:00:44 +00:00
Filippos Karapetis
c76041d46d
Fixed a crash in KQ1SCI, when the user types something wrong - the game tries to open a file with an empty file name, and an odd file mode
...
svn-id: r44491
2009-09-30 15:43:28 +00:00
Filippos Karapetis
1497f9845a
Fixed regression in r44417, found by waltervn. The score in KQ1SCI should be diplayed correctly again
...
svn-id: r44490
2009-09-30 15:21:44 +00:00
Johannes Schickel
2240886315
Got rid of old workaround, which was only needed because our SJIS font did not feature any ASCII chars.
...
svn-id: r44489
2009-09-30 14:54:18 +00:00
Johannes Schickel
438244a016
Adapt KYRA engine to use the ASCII and half-width katakana support of the SJIS font. (required for LoL PC98)
...
svn-id: r44488
2009-09-30 14:53:57 +00:00
Johannes Schickel
b8c7237d12
Cleanup: got rid of Screen::ShadeType.
...
svn-id: r44487
2009-09-30 14:53:34 +00:00
Johannes Schickel
03a26923c9
Implemented support for drawing 8x16 chars from our custom SJIS font.
...
svn-id: r44486
2009-09-30 14:53:07 +00:00
Nicola Mettifogo
9be8a6e4f6
Simplified inventory handling (too much information hiding will kill you).
...
svn-id: r44485
2009-09-30 13:41:19 +00:00
Filippos Karapetis
fa077237c1
Fixed a crash when starting KQ1SCI
...
svn-id: r44484
2009-09-30 13:09:18 +00:00
Johannes Schickel
1b94303b78
Update SJIS code to read SJIS.FNT version 2 data (no support for drawing ASCII and half-width katakana glyphs yet).
...
svn-id: r44483
2009-09-30 13:07:12 +00:00
Filippos Karapetis
fd21bb2611
- Moved the list of synonyms and parser nodes inside the vocabulary class
...
- Added a convenience member inside the EngineState struct to access the instance of the Vocabulary class
svn-id: r44481
2009-09-30 12:17:38 +00:00
Willem Jan Palenstijn
ab403f4845
Check readline+termcap if linking with readline failed
...
svn-id: r44480
2009-09-30 11:21:09 +00:00
Joost Peters
e29b1758de
fix bug #2869491 : "PSP make problem after 44348"
...
svn-id: r44479
2009-09-30 11:11:06 +00:00
Johannes Schickel
c9ca057ae2
- Adapt parts of the Draci code to match our code formatting guidelines
...
- Remove use of tabs for formatting, now in nearly all cases tabs are only used for indentation
- Use "uint" instead of "unsigned int" in the whole engine for consistency's sake
- Strip some trailing tabs and leading whitespaces
svn-id: r44478
2009-09-30 10:45:14 +00:00
Filippos Karapetis
4477f41903
Converted _color_equals() into respective equality operators within the gfx_color_t structure
...
svn-id: r44477
2009-09-30 08:23:12 +00:00
Nicola Mettifogo
eb5beef6a1
* Added secondary inventories for BRA.
...
* Added comments where code must be added/updated to support multiple inventories.
svn-id: r44476
2009-09-30 07:47:58 +00:00
Nicola Mettifogo
e660f31ed8
Provide only the data that is strictly needed when creating a new Inventory.
...
svn-id: r44475
2009-09-30 07:09:07 +00:00
Robert Špalek
76a0bcb6c4
Implemented the map room, entered when 'm' is pressed.
...
svn-id: r44474
2009-09-30 04:33:52 +00:00
Willem Jan Palenstijn
77bd8d0bfb
SCI: Add callk stackframe directly in run_vm
...
svn-id: r44473
2009-09-30 00:13:59 +00:00
Arnaud Boutonné
ff70b554ea
Playtoons - implement some functions related to hotspot texts
...
Fascination - initial version of several 'Fascination Window' functions, proper naming of most of fascination OPCODEDRAW and OPCODEGOB functions
svn-id: r44472
2009-09-29 22:43:30 +00:00
Torbjörn Andersson
c857369131
Fixed Valgrind warnings about invalid memory access. Hopefully without breaking
...
anything, but modifying a data structure while traversing it can be a bit
tricky...
svn-id: r44469
2009-09-29 19:51:37 +00:00
Arnaud Boutonné
f6aaafae7c
Gob - Silence a Valgrind warning by initializing a variable
...
svn-id: r44467
2009-09-29 16:56:30 +00:00
Filippos Karapetis
6f6b699390
Added a FIXME comment for the removed functionality in the script debugger
...
svn-id: r44466
2009-09-29 15:51:45 +00:00
Johannes Schickel
270104fc70
Remove unused variable.
...
svn-id: r44464
2009-09-29 14:37:09 +00:00
Johannes Schickel
70f7c46f42
Add newline after "Available debug channels" in Cmd_Debug, now all debug channels will be listed in separate lines.
...
svn-id: r44463
2009-09-29 14:36:46 +00:00
Filippos Karapetis
2c2cf614c8
Oops - don't attempt to print the sought kernel function name when its empty
...
svn-id: r44462
2009-09-29 14:28:37 +00:00