Commit Graph

69 Commits

Author SHA1 Message Date
Torbjörn Andersson
5d392d90d6 We need to use unsigned chars here to be able to print accented characters,
e.g. in the German cutscenes.

svn-id: r17805
2005-04-26 06:34:52 +00:00
Torbjörn Andersson
74ae914df2 Make it possible to specify language at run-time, since the Gobliiins 1
support for other languages appears to work at least fairly well, and this
makes it easier to test it.

svn-id: r17804
2005-04-26 06:29:53 +00:00
Torbjörn Andersson
21ea71a762 Keep track per piece whether or not it was dynamically allocated, otherwise
we'll end up trying to free invalid pointers. (Happened to me at the end of
the level where you get the voodoo doll.)

svn-id: r17802
2005-04-25 19:03:13 +00:00
Torbjörn Andersson
f08a767aa8 This one looks wrong too, but I don't think it has caused any crash for me.
Not yet, at least. And now, hopefully, it never will.

svn-id: r17801
2005-04-25 18:53:58 +00:00
Torbjörn Andersson
eb3b057836 This ought to fix bug #1188910
svn-id: r17796
2005-04-25 05:14:01 +00:00
Max Horn
ff19273ae6 Must call openCD to support real Audio CD tracks
svn-id: r17747
2005-04-22 08:39:51 +00:00
Torbjörn Andersson
cca9fb4804 Initialized variable to avoid Valgrind warning.
svn-id: r17732
2005-04-21 06:53:15 +00:00
Torbjörn Andersson
5076c6a231 Call initCommonGFX() to set the graphics mode etc.
svn-id: r17684
2005-04-19 08:29:43 +00:00
Torbjörn Andersson
a420016970 Whitespace
svn-id: r17683
2005-04-19 07:45:55 +00:00
Max Horn
08424bf6db Hack to get the CD version to play even if no CD track is present
svn-id: r17641
2005-04-16 23:31:02 +00:00
Eugene Sandulenko
3be91ebf6a o Switch track on each new scene.
o Slight improvement on track time calculation.
o Stub for gob2.

svn-id: r17603
2005-04-15 00:07:14 +00:00
Eugene Sandulenko
bec1acac06 Fix from wjp for redraws and input during delays
svn-id: r17602
2005-04-14 21:53:37 +00:00
Eugene Sandulenko
8e8c2de3ff Enable perfect timer so intro runs in sync now. Matches disassembly
svn-id: r17593
2005-04-13 22:32:59 +00:00
Eugene Sandulenko
07ed5e40a5 Patch from wjp. Fix keyboard input.
svn-id: r17592
2005-04-13 20:53:36 +00:00
Eugene Sandulenko
a5993b2112 Support for Red Book audio in CD version of gob1.
svn-id: r17588
2005-04-13 18:27:29 +00:00
Torbjörn Andersson
4aff3f0dc8 Fixed typo in comment.
svn-id: r17576
2005-04-13 06:17:54 +00:00
Eugene Sandulenko
1ac6a09a91 Fix hang in EGA version. Thanks to wjp. Be careful with that parse_printExpr()
svn-id: r17573
2005-04-13 00:52:15 +00:00
Eugene Sandulenko
bd9d8c6b31 Make VAR macros safer.
svn-id: r17572
2005-04-13 00:47:17 +00:00
Eugene Sandulenko
3536cd0aa2 Patch #1181639. "GOB: Possible inter_renewTimeInVars() fix"
svn-id: r17570
2005-04-12 23:45:15 +00:00
Eugene Sandulenko
185aa76351 Add comments on CD-specific opcodes
svn-id: r17566
2005-04-12 08:59:45 +00:00
Eugene Sandulenko
e096cf83f2 Remove reference to resource.h
svn-id: r17559
2005-04-12 00:34:23 +00:00
Eugene Sandulenko
a0ee8f6ed6 Remove unneeded files.
svn-id: r17558
2005-04-12 00:25:27 +00:00
Joost Peters
1f6ca5d898 add comment explaining this struct contains LE values
svn-id: r17557
2005-04-11 23:01:42 +00:00
Joost Peters
40fb3732c0 endian-convert pieces value when read, instead of when they are loaded (since I don't know how to tell how many picts there)
svn-id: r17556
2005-04-11 22:44:37 +00:00
Eugene Sandulenko
510fcec93d Patch from wjp. Support for CD and EGA versions.
svn-id: r17555
2005-04-11 21:44:08 +00:00
Max Horn
17163ea7a5 no, we only check for the value being 0, so no endian conversion is needed ;-)
svn-id: r17554
2005-04-11 20:44:33 +00:00
Max Horn
40d7c623cc cleanup
svn-id: r17553
2005-04-11 20:41:00 +00:00
Max Horn
91c533ffae Endian fixes, getting past the 'Please wait...' loading screen now
svn-id: r17552
2005-04-11 20:38:17 +00:00
Max Horn
fa80c6e8ba cleanup
svn-id: r17550
2005-04-11 20:04:14 +00:00
Max Horn
2ff681b1e9 Endian fixes
svn-id: r17549
2005-04-11 20:03:12 +00:00
Max Horn
ddecb30635 Stub out some opcodes, to get the CD version go a bit further (thanks Willem)
svn-id: r17548
2005-04-11 19:34:51 +00:00
Joost Peters
7927802873 cleanup
svn-id: r17539
2005-04-11 11:25:45 +00:00
Joost Peters
b4f0716912 more struct conversion
svn-id: r17538
2005-04-11 11:20:45 +00:00
Joost Peters
f9f8bf3070 convert some struct members - unfortunately we can't currently allocate memory and read the struct in "the proper way", as the engine still addresses data beyond it
svn-id: r17537
2005-04-11 10:55:22 +00:00
Nicolas Bacca
ee6deedb03 Add autodetection for WinCE (to be modified)
svn-id: r17527
2005-04-10 21:10:01 +00:00
Nicolas Bacca
e7dc5a24fd Get rid of posixism
svn-id: r17526
2005-04-10 21:09:27 +00:00
Joost Peters
f35ac50111 Some inter_variables cleanup.
Now it should store all variables in the native endianness, instead of storing half in LE and the other half in the native endianness.
Addresses and assignments can be tracked by modifying the macros if necessary.
Also, meaningful constants can now be assigned to script variable numbers (if one were so inclined)

svn-id: r17523
2005-04-10 17:13:17 +00:00
Joost Peters
53a64266c8 Apply "correct handling of transp in drawSprite()" patch by wjp.
(Colour 0 should only be skipped when transp is set)
Fixes wrong colour in intro and clearing of buffer after fades.

svn-id: r17511
2005-04-10 14:30:24 +00:00
Joost Peters
232860bc44 fix jumping goblin bug
svn-id: r17509
2005-04-10 13:07:02 +00:00
Joost Peters
e3fbf09035 fix another "x = y" type copy/paste bug, unfortunately this still doesn't fix the jumping goblin in the first scene
svn-id: r17507
2005-04-10 12:32:56 +00:00
Eugene Sandulenko
1ec5111b98 Fix jumping actor glitch. Thanks to joostp.
svn-id: r17492
2005-04-09 23:13:46 +00:00
Eugene Sandulenko
e7786320a6 Fix for put apple bug from wjp
svn-id: r17491
2005-04-09 21:16:34 +00:00
Max Horn
2efa0d17f2 Get rid of debug.cpp/.h -- it wasn't used anyway, and contained bad code (open/write/close to access a log file? yuck)
svn-id: r17486
2005-04-09 19:32:29 +00:00
Max Horn
9aaff636aa Fix legal header. Be careful when doing global search and replace! Better use full-word regex, to avoid problems like this
svn-id: r17485
2005-04-09 19:19:54 +00:00
Joost Peters
6553ed4d9b read index as LE value
svn-id: r17484
2005-04-09 18:14:01 +00:00
Joost Peters
4d626f867a Fix crash after dropping item on screen change - thanks wjp!
svn-id: r17483
2005-04-09 17:58:07 +00:00
Jonathan Gray
24c92d0091 Remove usage of vsprintf in favour of vsnprintf and make
more use of STRINGBUFLEN.  Some ports may need a new stub for
this, discussed with Chrilith.

svn-id: r17463
2005-04-09 01:52:44 +00:00
Eugene Sandulenko
aff66038f3 o Put numerous debug messages to deeper level and removed others
o Occasional indentation fixes
o Fixed bug with cursor. Thanks wjp. Now even gob1demo works but final screen which is not playable in original hangs here.

svn-id: r17462
2005-04-09 01:28:16 +00:00
Paweł Kołodziejski
5826b4eb91 fixed compilation and warnings
svn-id: r17457
2005-04-08 22:27:12 +00:00
Joost Peters
60a64494d1 use upper bits instead of lower bits when upscaling palette
svn-id: r17423
2005-04-06 19:18:08 +00:00