Commit Graph

1447 Commits

Author SHA1 Message Date
Paweł Kołodziejski
dc64134a74 fixed actor palette for nonblocked games
svn-id: r7014
2003-04-16 07:11:04 +00:00
Paweł Kołodziejski
9b739fcf0d a little fix for costumes, still wrong
svn-id: r7013
2003-04-16 06:42:26 +00:00
Paweł Kołodziejski
942bcef563 changes in costumes offsets, still wrong
svn-id: r7010
2003-04-14 07:02:07 +00:00
Paweł Kołodziejski
a114ddbbf7 shouldn't be increased to next search object ?
svn-id: r7009
2003-04-13 21:47:48 +00:00
Max Horn
1623dee298 this seems to be needed for loomdemo (and loom?), too
svn-id: r7008
2003-04-13 21:29:44 +00:00
Paweł Kołodziejski
9290218e4f img and imgh should be readed from offset +2, but i'm not sure about imptr (it should skip only length)
svn-id: r7007
2003-04-13 21:21:56 +00:00
Paweł Kołodziejski
158a3a5080 added specific opcodes for indy ega same as at indy 256, and dummy opcode for loom ega
svn-id: r7006
2003-04-13 20:15:44 +00:00
Paweł Kołodziejski
207f164cc6 fix stupid bug
svn-id: r7005
2003-04-13 19:56:52 +00:00
Paweł Kołodziejski
c71c8f4473 handle old_bundle offsets for costume code, still wrong
svn-id: r7004
2003-04-13 19:53:39 +00:00
Paweł Kołodziejski
e0d170faca handle old_bundle offsets getVerbEntrypoint(), o5_setObjectName(), getObjOrActorName() funcs
svn-id: r7003
2003-04-13 16:42:33 +00:00
Paweł Kołodziejski
aff192d554 handle old_bundle size at addObjectToInventory() func
svn-id: r7002
2003-04-13 16:21:41 +00:00
Paweł Kołodziejski
134d358261 draw_object instead pickup_object for all v3 scumm games
svn-id: r7001
2003-04-13 16:03:48 +00:00
Max Horn
c7f298702a fixed my box size hack
svn-id: r6999
2003-04-13 01:51:24 +00:00
Max Horn
06810ea184 oops, copy&paste, I should avoid 'em or check better :-(
svn-id: r6998
2003-04-12 20:19:29 +00:00
Max Horn
3ffafcfdf3 just in case...
svn-id: r6997
2003-04-12 20:12:52 +00:00
Max Horn
46a6fc69c0 loadCharset(0) for GF_OLD_BUNDLE - 'fixes' indydemo to an extent
svn-id: r6996
2003-04-12 20:07:08 +00:00
Max Horn
bfb5b19758 oops
svn-id: r6995
2003-04-12 19:51:43 +00:00
Max Horn
951e5cfe98 fixed costume code for OLD_BUNDLE (but boy, this is hackish... we rather should shift all the other costume datas by 2 or 4 bytes)
svn-id: r6994
2003-04-12 19:51:14 +00:00
Max Horn
bd2011467b hacked in some verb object support for OLD_BUNDLE (drawVerbBitmap part not yet tested; but the setVerbObject is needed now already)
svn-id: r6993
2003-04-12 19:44:06 +00:00
Max Horn
a33e4dddac ignore sound resource in OLD_BUNDLE games for now
svn-id: r6992
2003-04-12 19:42:12 +00:00
Max Horn
fc08a317b0 fixed OLD_BUNDLE object image offset
svn-id: r6991
2003-04-12 18:43:23 +00:00
Max Horn
32c7c4eb6b fixed (?) local script offests for OLD_BUNDLE games
svn-id: r6990
2003-04-12 17:59:24 +00:00
Max Horn
fb1409937e center close button
svn-id: r6989
2003-04-12 17:22:20 +00:00
Jonathan Gray
1f48f9cc5f hack around wrong costume in indy3 until a proper solution is found
svn-id: r6987
2003-04-12 13:13:01 +00:00
Max Horn
3fcac728a8 added GF_OLD_BUNDLE to findObjectInRoom
svn-id: r6986
2003-04-12 12:58:20 +00:00
Max Horn
95f6141c71 fixed OLD_BUNDLE entry script (d'oh!) and dump entry/exit script for OLD_BUNDLE games, too
svn-id: r6985
2003-04-12 12:03:55 +00:00
Max Horn
a236803241 cleanup
svn-id: r6984
2003-04-12 11:44:15 +00:00
Paweł Kołodziejski
bab3f0d9f9 added adlib default for loom and enabled zak
svn-id: r6983
2003-04-12 09:46:48 +00:00
Paweł Kołodziejski
9079a51cf2 fixed stupid bug
svn-id: r6982
2003-04-12 09:36:10 +00:00
Paweł Kołodziejski
6d4b748199 fixes zplanes for nonblocked games
svn-id: r6981
2003-04-12 09:31:00 +00:00
Paweł Kołodziejski
6c2dd8b4d2 fixed setting local scripts for unblocked games
svn-id: r6980
2003-04-12 07:06:19 +00:00
Max Horn
b015b07d22 oops, forgot debug output
svn-id: r6979
2003-04-12 02:39:16 +00:00
Max Horn
b89a2ca142 doh... best way to check for 16 color games is to check for 16 color games, isn't it? :-)
svn-id: r6978
2003-04-12 02:38:40 +00:00
Max Horn
9750a2407c lots of unblocked aka GF_OLD_BUNDLE support code (still no load, but gets further :-)
svn-id: r6977
2003-04-12 02:09:00 +00:00
Max Horn
dbff83a88b fixed resource loading in GF_OLD_BUNDLE games (res header = 2 bytes length, plus 2 unknown bytes)
svn-id: r6976
2003-04-11 22:15:59 +00:00
Paweł Kołodziejski
6fef5f77ad fix for cursor image in the loom ega
svn-id: r6975
2003-04-11 20:21:32 +00:00
Max Horn
51b430b088 factored out some common code
svn-id: r6974
2003-04-11 20:05:37 +00:00
Paweł Kołodziejski
fd28237eb8 added loading object flags for loom ega
svn-id: r6973
2003-04-11 16:25:09 +00:00
Jonathan Gray
91c6f38ed4 stop loom pass demo from erroring out
svn-id: r6972
2003-04-11 12:57:41 +00:00
Max Horn
9b6cb4ba1e fixes V3/OLD_BUNDLE res reading
svn-id: r6971
2003-04-11 11:51:41 +00:00
Max Horn
929a2fe927 cleanup
svn-id: r6968
2003-04-11 11:40:56 +00:00
Max Horn
8c78049154 made unblocked games get a little farther before crashing
svn-id: r6967
2003-04-11 11:40:35 +00:00
Jonathan Gray
16713d1176 make monkeyega intro work :)
svn-id: r6966
2003-04-11 05:31:45 +00:00
Paweł Kołodziejski
c4a51041d4 fix for ega palette, more
svn-id: r6965
2003-04-11 05:31:18 +00:00
Paweł Kołodziejski
f1aa6daf00 fix for ega palette
svn-id: r6964
2003-04-11 05:22:28 +00:00
Jonathan Gray
8febecac27 spelling
svn-id: r6963
2003-04-11 03:57:09 +00:00
Travis Howell
61d103220c Auto detect monkeyega and pass
Use adlib by default in monkeyega and pass

svn-id: r6962
2003-04-11 02:43:12 +00:00
Paweł Kołodziejski
c275874f8c fixed o5_actorSet (scale only one param), and added handle for actor sound
svn-id: r6961
2003-04-10 20:42:50 +00:00
Paweł Kołodziejski
90d22c8d6a turn on scaled actors in ega blocked games
svn-id: r6960
2003-04-10 19:58:26 +00:00
Paweł Kołodziejski
5418f6d6bd fixed zplanes and a little palette changes for ega blocked games
svn-id: r6959
2003-04-10 19:30:01 +00:00
Jonathan Gray
e169b15efa use shadowPalette for ega stuff
svn-id: r6957
2003-04-10 12:20:36 +00:00
Jonathan Gray
4572cc565a update 16 colour palette
svn-id: r6956
2003-04-10 12:13:09 +00:00
Jonathan Gray
136b4c32b6 blocked ega games now look like they should thanks to aquadran
svn-id: r6955
2003-04-10 11:34:51 +00:00
Jonathan Gray
8595e9de42 palette changes from aquadran who can't use cvs atm
svn-id: r6954
2003-04-10 07:26:28 +00:00
Jonathan Gray
88327a9f69 add target for passport to adventure
svn-id: r6953
2003-04-10 07:21:31 +00:00
Jonathan Gray
bee1189c5c unmask indy3ega
svn-id: r6952
2003-04-10 06:58:23 +00:00
Jonathan Gray
c3ea143e34 hard to look at dial a pirate when you don't have graphics
svn-id: r6951
2003-04-10 06:18:23 +00:00
Nicolas Bacca
233ef12080 It's correct this time. Really. Trust me.
svn-id: r6950
2003-04-09 21:59:23 +00:00
Jonathan Gray
8c4d7e2d97 make gcc happy
svn-id: r6949
2003-04-09 21:56:50 +00:00
Paweł Kołodziejski
7f6fca1528 fix ega codec again
svn-id: r6948
2003-04-09 19:50:47 +00:00
Paweł Kołodziejski
2f62d6cf4e fix ega codec
svn-id: r6947
2003-04-09 19:18:23 +00:00
Paweł Kołodziejski
c9b56af48b a little improved ega support
svn-id: r6946
2003-04-09 19:14:05 +00:00
Jonathan Gray
13ca8ea76c make zak use correct charset
svn-id: r6945
2003-04-09 08:06:55 +00:00
Paweł Kołodziejski
5a29b639ff added also Monkey ega for 16 colors palette
svn-id: r6944
2003-04-09 05:20:16 +00:00
Jonathan Gray
34eec5e80f change some stuff back that didn't merge properly when I cvs up'd
svn-id: r6943
2003-04-08 22:22:55 +00:00
Jonathan Gray
d8d2a38f7f text in zak is now using the incorrect font and it does nasty stuff like overlapping text as well, but this makes zak work again to set values of work, someone please fix this before 0.4.0
svn-id: r6942
2003-04-08 22:15:46 +00:00
Paweł Kołodziejski
00a2bc9127 added definition of 16 colors palette to gfx backend for V2/V3 games
I hope it's correct :)

svn-id: r6941
2003-04-08 20:10:51 +00:00
Paweł Kołodziejski
7189347adb changed range from GF_OLD256 to GF_AFTER_V3
svn-id: r6940
2003-04-08 19:05:41 +00:00
Jonathan Gray
a3a47bcb80 remove old fixme that seemingly isn't needed anymore. note this triggers an assertion in zak when text is used for some strange reason, but should make indy3/zak256 strings look normal again
svn-id: r6938
2003-04-07 23:31:42 +00:00
Paweł Kołodziejski
406b0072e1 fixed reading Loom index file, and handle gfx for 16 colors games
svn-id: r6937
2003-04-07 22:47:38 +00:00
Paweł Kołodziejski
f9635e6b92 increased to 16 items
svn-id: r6935
2003-04-07 21:01:49 +00:00
Paweł Kołodziejski
7d6939e2eb revert to revert
svn-id: r6931
2003-04-07 17:01:08 +00:00
Max Horn
ca7c8081a1 Patch #712493: CMI: Object line
svn-id: r6930
2003-04-07 16:04:30 +00:00
Max Horn
df9ccab935 removed -1's in image verb code: a) the original code doesn't have these b) it's not clear why they were added c) this should fix the distaff in LoomCD
svn-id: r6929
2003-04-07 15:51:37 +00:00
Paweł Kołodziejski
0a46882bea added charset support for all V3 games, and fix for cleaning all 16 variables not only 15
svn-id: r6928
2003-04-07 14:38:26 +00:00
Paweł Kołodziejski
7e62d9a119 zak256 invertory bug is not repeatable, changed order font selection, added handle font support for all V3 scumm games
svn-id: r6927
2003-04-07 06:34:42 +00:00
Paweł Kołodziejski
b30aa3cc69 fixed detection v2 scumm game
svn-id: r6926
2003-04-07 05:10:57 +00:00
Jonathan Gray
9bfcce6e79 remove incorrect cast
svn-id: r6925
2003-04-06 23:22:54 +00:00
Paweł Kołodziejski
b4ef91f6c6 added handle v2 resources for scumm v3, for now hack
svn-id: r6924
2003-04-06 21:24:39 +00:00
Paweł Kołodziejski
d56673b845 fixed detection of early scumm games
svn-id: r6923
2003-04-06 19:41:34 +00:00
Nicolas Bacca
d3d85bf003 Oops on previous fix
svn-id: r6921
2003-04-06 16:48:52 +00:00
Paweł Kołodziejski
8a619598e9 also Loom exception in the read/write var funcs
svn-id: r6920
2003-04-06 16:02:08 +00:00
Paweł Kołodziejski
aa4898984a corrected right/bottom borders while clipping at drawBox() func
svn-id: r6919
2003-04-06 14:11:37 +00:00
Nicolas Bacca
9dba239af1 Alignment fix
svn-id: r6918
2003-04-06 12:57:25 +00:00
Nicolas Bacca
5179aef286 Alignment fixes
svn-id: r6917
2003-04-05 23:41:21 +00:00
Nicolas Bacca
fb20404df0 Watch this cast
svn-id: r6912
2003-04-05 11:24:58 +00:00
Nicolas Bacca
103937ea63 Add delay in ms for tremor vorbis implementation and possible autodetection
svn-id: r6911
2003-04-05 09:55:12 +00:00
Max Horn
b8043f7570 fix for bug #695654
svn-id: r6900
2003-04-02 15:23:36 +00:00
Paweł Kołodziejski
faf6ec087a correct to match dissassembly
svn-id: r6894
2003-04-01 20:56:27 +00:00
Max Horn
68e7ce8143 Patch 713149: Fix OOB access
svn-id: r6893
2003-04-01 15:32:17 +00:00
Paweł Kołodziejski
7ee96df673 fixed description centering in the FT and added hack for redraw descriptions in height while scrolling room
svn-id: r6890
2003-03-30 19:32:12 +00:00
Paweł Kołodziejski
776cdf2d08 added eriktorbjorn patch for multiple text lines for the dig ending credits
svn-id: r6889
2003-03-30 19:03:12 +00:00
Paweł Kołodziejski
7edc0abd5b changed messages from warning to debug
svn-id: r6888
2003-03-30 16:54:03 +00:00
Max Horn
ee7ca9e891 obsolete TODOs
svn-id: r6887
2003-03-30 12:52:22 +00:00
Paweł Kołodziejski
6c9b798611 fixed cordinates in the Dig opcode 0xE1
svn-id: r6886
2003-03-30 12:34:36 +00:00
Paweł Kołodziejski
2d55c99997 corrected opcode 0xE1 in the dig (bug in the IDB)
svn-id: r6885
2003-03-30 11:04:11 +00:00
Max Horn
df82b6881b fixed verb regression in older games
svn-id: r6884
2003-03-29 20:48:57 +00:00
Paweł Kołodziejski
6dd0b2d9bb changed printf to debug
svn-id: r6883
2003-03-29 15:56:42 +00:00
Paweł Kołodziejski
69723edd1e hack for proper description redraw in the dig while scrolling room
svn-id: r6882
2003-03-29 15:48:25 +00:00
Paweł Kołodziejski
1c2d5878f6 fix y position of text description in the dig
svn-id: r6881
2003-03-29 14:03:20 +00:00
Max Horn
0e0fb2e0c3 some comments on actorHit
svn-id: r6878
2003-03-28 23:53:07 +00:00
Max Horn
af2e2fff7a cleanup
svn-id: r6877
2003-03-28 23:08:36 +00:00
Max Horn
e0a880addb this should fix one of those nasty deadlocks, I hope
svn-id: r6876
2003-03-28 22:42:48 +00:00
Max Horn
fb7fdc8e7e fixed verb drawing in COMI (and maybe FT, too?)
svn-id: r6874
2003-03-28 19:11:16 +00:00
Max Horn
ddb1173bf8 grow default buttons size & browser dialog to accomodate for spanish games
svn-id: r6871
2003-03-26 22:41:12 +00:00
Max Horn
c409895483 make the volume controls in the global options dialog work
svn-id: r6863
2003-03-25 15:55:27 +00:00
Max Horn
023d84a6a3 added some meat to the global options dialog (no prefs are stored yet, though)
svn-id: r6862
2003-03-25 15:32:36 +00:00
Max Horn
b25a47ffc5 Patch #691696: Possible fix for Adlib regression
svn-id: r6857
2003-03-25 00:28:09 +00:00
Max Horn
c98130a0a6 cleanup
svn-id: r6855
2003-03-24 21:56:29 +00:00
Max Horn
d89b2be0fc Patch #708384: Off-by-one bug which causes inventory problems in COMI
svn-id: r6852
2003-03-23 19:28:12 +00:00
Max Horn
be47bc121e cleanup
svn-id: r6847
2003-03-23 13:14:54 +00:00
Paweł Kołodziejski
bc78170ce4 moved delay stuff outside of lock mutex
svn-id: r6843
2003-03-21 09:18:38 +00:00
Paweł Kołodziejski
c4ee1cdf00 take lock mutex mechanism also processKbd() and waitForTimer().
I hope it will finally solve locking gfx resources

svn-id: r6838
2003-03-20 10:58:10 +00:00
Max Horn
dcd6a8d29d use a mutex to sync smush screen updates (should avoid crash caused by a race condition)
svn-id: r6837
2003-03-19 19:09:51 +00:00
Max Horn
1baa7e30d0 cleanup
svn-id: r6836
2003-03-18 22:07:49 +00:00
Paweł Kołodziejski
4cdfd9c2be added script opcode for dig minigame
svn-id: r6834
2003-03-18 20:32:01 +00:00
Paweł Kołodziejski
52bf93a8aa added input keys support for dig ingame
svn-id: r6833
2003-03-18 19:26:00 +00:00
Max Horn
0602882b18 cleanup
svn-id: r6832
2003-03-18 16:13:52 +00:00
Jonathan Gray
5985310d64 add GF_DEFAULT_TO_1X_SCALER
svn-id: r6830
2003-03-18 06:53:47 +00:00
Paweł Kołodziejski
0812d3bf44 a tiny safer
svn-id: r6829
2003-03-17 22:46:08 +00:00
Paweł Kołodziejski
6ed5d5d757 changed order
svn-id: r6828
2003-03-17 21:55:58 +00:00
Paweł Kołodziejski
56e9201a70 few corrections for smush
svn-id: r6827
2003-03-17 19:10:12 +00:00
Paweł Kołodziejski
d29c68603f moved backend update_screen() (slooolest thing) from smush updateScreen() into main loop
switching scalers also works now

svn-id: r6826
2003-03-17 15:22:36 +00:00
Paweł Kołodziejski
975843c758 moved handle events from update into main loop
svn-id: r6825
2003-03-17 13:35:34 +00:00
Paweł Kołodziejski
e4c8f26e6a changed debug level 4
svn-id: r6824
2003-03-17 13:26:46 +00:00
Jonathan Gray
03ff93e5db 256 + 1 != 256
svn-id: r6823
2003-03-17 13:16:26 +00:00
Jonathan Gray
b50b353bcf init member vars in right order
svn-id: r6822
2003-03-17 13:04:54 +00:00
Jonathan Gray
85c9a9c39d stop gcc crying about unused variable
svn-id: r6821
2003-03-17 12:54:00 +00:00
Jonathan Gray
e79058b2a1 update for smush changes
svn-id: r6820
2003-03-17 12:48:49 +00:00
Paweł Kołodziejski
d434b86ddb split waitForTimer func, update for smush,
btw, switching scalers while playing smush movies doesn't work or at least SDL backend,
it hang on SDL_SetVideo func

svn-id: r6818
2003-03-17 12:32:46 +00:00
Paweł Kołodziejski
06ef80fa61 reorg/clenup, changed main loop in smush code
svn-id: r6817
2003-03-17 12:28:50 +00:00
Jonathan Gray
9424b0f20e patch #704237 SO_ROOM_NEW_PALETTE implementation which fixes at least the banjo and crypt scenes
svn-id: r6814
2003-03-15 21:28:22 +00:00
Paweł Kołodziejski
edc5ea57f0 clenaup
svn-id: r6813
2003-03-13 06:37:07 +00:00
Max Horn
8b67c3c23e fix for little endian systems
svn-id: r6811
2003-03-13 02:30:06 +00:00
Max Horn
8fcdb62f74 Patch #686427: SO_ROOM_SATURATION implementation
svn-id: r6810
2003-03-13 02:23:55 +00:00
Max Horn
4f2a48ac4d cleanup
svn-id: r6809
2003-03-13 02:10:48 +00:00
Max Horn
f6b03c0aba char* -> byte*; if something is declared 'private' and then subclasses have to hack around that (BaseRenderer vs. ScummRenderer) that's usually a hint that it was not the right choice to make it private; don't use so many accessors for no good reasons
svn-id: r6808
2003-03-13 01:49:54 +00:00
Max Horn
4c6e8dc695 changed decoder API to take a memory block as source, not a Chunk
svn-id: r6807
2003-03-13 01:24:02 +00:00
Travis Howell
d143164eac Remove blitter.cpp
svn-id: r6805
2003-03-13 01:01:12 +00:00
Max Horn
9c52f6033f removed Blitter class
svn-id: r6804
2003-03-13 00:37:03 +00:00
Max Horn
27199bc83a cleanup
svn-id: r6803
2003-03-13 00:01:33 +00:00
Paweł Kołodziejski
08cd9d994a removed additional back buffer in smush
svn-id: r6802
2003-03-12 21:44:18 +00:00
Paweł Kołodziejski
cdb699fa43 separated comi/dig translation stuff
svn-id: r6801
2003-03-12 19:53:02 +00:00
Max Horn
acbfc66af8 added stub for proper oldRoomEffects implementation (proper for Zak256 that is); real code needs to be inserted
svn-id: r6794
2003-03-10 20:39:04 +00:00
Max Horn
754a6859d4 tiny improvement <g>
svn-id: r6793
2003-03-10 20:38:33 +00:00
Max Horn
7c147e4771 cleanup CD opcode a bit; slightly increase the 'delay' -> sounds better since speakers are not cut off abruptly anymore
svn-id: r6791
2003-03-10 02:55:50 +00:00
Paweł Kołodziejski
3526d1191c added opcode 17 to 16 in o6_kernelSetFunctions
svn-id: r6788
2003-03-09 15:35:19 +00:00
Paweł Kołodziejski
8e0db10bf2 hack for "%___" in translated strings
svn-id: r6787
2003-03-09 08:30:53 +00:00
Max Horn
ccd2b3d16b fix for bug #700202
svn-id: r6785
2003-03-09 03:36:19 +00:00
Max Horn
0d0c25d764 rest of patch #655594: Handling Y/N questions
svn-id: r6784
2003-03-09 02:41:35 +00:00
Max Horn
6e18bdfdb3 more cleanup; added an error in case we encounter a 'real' input overflow (more than one byte, or one byte overflow but number of bits needed exceeds 8)
svn-id: r6780
2003-03-08 23:35:46 +00:00
Max Horn
d8dc1295fb cleanup / optimization
svn-id: r6779
2003-03-08 23:04:24 +00:00
Max Horn
ce0f95dff2 cleanup; added warning for decoder overflows in COMI (it writes 1 byte past the output buffer...)
svn-id: r6778
2003-03-08 22:55:09 +00:00
Paweł Kołodziejski
734d749602 hack for comi bundle codec, i hope it fix valgrid warnings
svn-id: r6777
2003-03-08 18:51:07 +00:00
Paweł Kołodziejski
4a5ffdd9a6 fixed descriptions in the dig
svn-id: r6776
2003-03-08 17:39:18 +00:00
Paweł Kołodziejski
fbc3876ccd fixed description in the dig
svn-id: r6775
2003-03-08 17:38:59 +00:00
Paweł Kołodziejski
e4b59860b4 added opcode 124 in kernelSetFunctions
svn-id: r6774
2003-03-08 14:42:59 +00:00
Max Horn
d24df8ff7a fix actor gliding caused by my walk_script hack
svn-id: r6773
2003-03-08 14:12:58 +00:00
Max Horn
38371389ea enabled walk scripts
svn-id: r6772
2003-03-08 13:29:41 +00:00
Max Horn
73f7f88c96 hacked in some crude clipping code for drawChar; let's see if that helps Valgrind
svn-id: r6771
2003-03-08 13:26:20 +00:00
Max Horn
e4a8edfc67 cleanup (should cause no behavior change)
svn-id: r6766
2003-03-08 04:11:02 +00:00
Max Horn
0d18caae26 removed valgrind hack again
svn-id: r6765
2003-03-08 03:52:37 +00:00
Max Horn
6316f83c93 new constant MF_FROZEN; fixed actor unfreeze code
svn-id: r6764
2003-03-08 02:06:56 +00:00
Max Horn
c739960176 added yet another sanity check (assert); fixed long standing evil bug in getObjNewDir / getObjOldDir
svn-id: r6763
2003-03-08 00:56:43 +00:00
Max Horn
20c6cfdd2d some more dummy code for valgrind debugging
svn-id: r6762
2003-03-08 00:24:23 +00:00
Max Horn
8073abd096 clean up / some more sanity checks
svn-id: r6760
2003-03-08 00:05:27 +00:00
Max Horn
c4a9aec083 possible fix for a valgrind issue
svn-id: r6759
2003-03-07 23:55:28 +00:00
Max Horn
b484c7a6bc added some code to get better valgrind results
svn-id: r6758
2003-03-07 23:49:59 +00:00
Max Horn
12d09b57b5 ah yeah, I did that on purpose. Really. Just wanted to check if everybody is paying attention
svn-id: r6757
2003-03-07 22:44:25 +00:00
Max Horn
cb04f9f9b3 fixed some more valgrind warnings
svn-id: r6756
2003-03-07 21:59:02 +00:00
Max Horn
992b4f479f cleanup toSimpleDir: should be easier to understand this way, and hopefully fixes the valgrind warnings
svn-id: r6755
2003-03-07 21:56:38 +00:00
Max Horn
ade9c80333 typo
svn-id: r6754
2003-03-07 21:54:45 +00:00
Max Horn
7e86da474d tiny cleanup
svn-id: r6753
2003-03-07 21:51:30 +00:00
Max Horn
7ad611e710 replaced shuffleArray with a meaningful implementation, even if it differes from assembly
svn-id: r6752
2003-03-07 21:49:06 +00:00
Max Horn
7ec34ab1a9 refactored some stuff (and made readMAXS virtual, with V2/V3 code having own implementations); cleaned up V6 array shuffle code; made more Scumm member vars/methods protected
svn-id: r6751
2003-03-07 21:38:46 +00:00
Paweł Kołodziejski
243c4ffbc0 implemented formating string error for each engine
svn-id: r6744
2003-03-07 15:38:11 +00:00
Paweł Kołodziejski
39510ce4cc changed voice buffer allocation to needed size
svn-id: r6737
2003-03-07 07:49:10 +00:00
Paweł Kołodziejski
6c3ea05205 decreased a little more sound buffer
svn-id: r6736
2003-03-07 07:14:35 +00:00
Paweł Kołodziejski
26144eda33 decreased sound buffer for imuse digital, bundle music, and cmi smush audio
svn-id: r6735
2003-03-07 06:41:44 +00:00
Max Horn
5944944f78 properly init Actor objects instead of one big evil hackish memset...
svn-id: r6733
2003-03-07 02:43:21 +00:00
Max Horn
5537fc3df3 ouch - fixed OOB access on _baseFLObject; also added various sanity checks (thx valgrind)
svn-id: r6732
2003-03-07 02:42:39 +00:00
Max Horn
22e6d4581b fixed OOB acces (thx valgrind)
svn-id: r6731
2003-03-07 02:19:26 +00:00
Max Horn
dd24a5d797 overlooked one
svn-id: r6730
2003-03-07 01:36:42 +00:00
Max Horn
7222d05d68 uhh - code did modify ptr, then free() it (even before my change, which exposed the problem by always freeing, not just upon errors
svn-id: r6729
2003-03-07 01:35:54 +00:00
Max Horn
fd2e1c2413 fixed memory leak (1 MB each time a bundle sound was plyed... ouch)
svn-id: r6728
2003-03-07 01:21:55 +00:00
Paweł Kołodziejski
aa3766018f updated copyrights headers
svn-id: r6726
2003-03-06 21:46:56 +00:00
Paweł Kołodziejski
093428ae9a and more cleanup
svn-id: r6718
2003-03-06 17:58:13 +00:00
Paweł Kołodziejski
6cb48aa77a and more pedantic cleanup
svn-id: r6707
2003-03-06 08:36:56 +00:00
Max Horn
f02506f993 Patch #697846: Fix for graphics glitches after saving
svn-id: r6690
2003-03-05 11:40:37 +00:00
Max Horn
45f6976805 Patch #697848: Small removeObjectFromRoom() cleanup
svn-id: r6689
2003-03-05 11:39:27 +00:00
Jonathan Gray
91786c253d add bundle file names for comi demo, and only add .IMX when playing the full version
svn-id: r6688
2003-03-04 06:10:07 +00:00
Max Horn
bc60419fa6 if a script triggers a load, immediatly perform it (this also covers the case where the user requests a load while a SMUSH video is playing. This avoids the annoying affect of seeing 1 frame of the old room immediately after you requested the load
svn-id: r6687
2003-03-04 03:18:12 +00:00
Max Horn
e72bddeea0 disable some smush code -> this allows the COMI demo to get into the canon scene. Not sure if this causes any regressions, please tell me if you find any
svn-id: r6686
2003-03-04 02:56:43 +00:00
Max Horn
db404cb1c4 load NUT fonts even if they do not specify full 256 chars (e.g. the COMI demo only defines 233 chars
svn-id: r6685
2003-03-04 02:45:50 +00:00
Max Horn
89f6ebb77c added some asserts; added a hack that helps the COMI demo
svn-id: r6684
2003-03-04 02:43:43 +00:00
Max Horn
423f26bc27 fix double free bug
svn-id: r6679
2003-03-03 23:57:10 +00:00
Max Horn
405b6fd051 don't error out if a font is missing -> this fixes the COMI demo
svn-id: r6678
2003-03-03 23:39:48 +00:00
Jonathan Gray
0af6652b0b enable newgui f5 dialog for comi as per erik's patch
svn-id: r6676
2003-03-03 22:32:02 +00:00
Jonathan Gray
aa2259c5a9 fix shadowed variable problems
svn-id: r6675
2003-03-03 21:48:22 +00:00
Marcus Comstedt
fd0d9b1998 Made the code a bit more maintainable...
svn-id: r6672
2003-03-03 20:22:00 +00:00
Jonathan Gray
401713210b add stub for opcode 0xE4
svn-id: r6671
2003-03-03 10:19:27 +00:00
Jonathan Gray
436afde5eb add hack that attempts to workaround the offset hotspot problem in humongous games
svn-id: r6670
2003-03-03 01:53:18 +00:00
Paweł Kołodziejski
186480c839 fixes to akos opcodes
svn-id: r6669
2003-03-03 00:45:38 +00:00
Jonathan Gray
671f6221ec opcode 0xA7 is just o6_pop
svn-id: r6668
2003-03-02 22:27:32 +00:00
Marcus Comstedt
738be5adeb Handle architectures which need alignment for 32bit memory access...
svn-id: r6666
2003-03-02 20:15:22 +00:00
Max Horn
f6bac973f8 patch #696030: CMI: More actor direction fixes
svn-id: r6662
2003-03-02 15:51:56 +00:00
Paweł Kołodziejski
73fa5d7b3a increased range of palette to 255
svn-id: r6661
2003-03-02 13:44:08 +00:00
Paweł Kołodziejski
bf2576e734 added AKC_StartVarAnim opcode for akos_increaseAnims
svn-id: r6660
2003-03-02 13:07:58 +00:00
Paweł Kołodziejski
d115e0ad75 fixed warnings
svn-id: r6659
2003-03-02 12:36:07 +00:00
Paweł Kołodziejski
0ce6264d11 changed sub_FEE_78D2 func for scumm v7
svn-id: r6658
2003-03-02 12:35:27 +00:00
Paweł Kołodziejski
9eff1cc3fd changed check only for Cxxx opcodes
svn-id: r6657
2003-03-02 12:23:37 +00:00
Jonathan Gray
3d75e1191d add commands to debugger, objects prints a table of local objects, object num pickup (room) will pickup an object, _currentRoom if no room specified, be warned this currently doesn't check the room is valid for the particular object number
svn-id: r6656
2003-03-02 07:50:49 +00:00
Max Horn
f4e147e5d2 removed the single big VersionSettings list; instead, the simon & scumm modules now keep their target lists seperatly (and when we add BASS, it can have its own target list)
svn-id: r6652
2003-03-01 22:04:48 +00:00
Jonathan Gray
d31b7439e1 we were reading 8 bytes too much on DIGI sounds
svn-id: r6648
2003-03-01 13:32:45 +00:00
Jonathan Gray
88906b0360 hacky support for humongous talkie format
svn-id: r6646
2003-03-01 12:44:52 +00:00
Paweł Kołodziejski
4fd68d63b6 heh
svn-id: r6645
2003-02-28 20:33:06 +00:00
Jonathan Gray
0e5a19e13e change rate for humongous DIGI sounds to 11025
svn-id: r6644
2003-02-28 11:32:43 +00:00
Jonathan Gray
18acc2e800 patch #693475 attempt to address the actor facing problems in comi by erik
svn-id: r6643
2003-02-27 10:42:12 +00:00
Jonathan Gray
af19cac738 patch #689164 comi verb coin hack by erik, fixes the verb coin drawing behind the inventory
svn-id: r6642
2003-02-27 10:17:29 +00:00
Jonathan Gray
cd7c6ef624 make sounds work in non puttdemo humongous games
svn-id: r6637
2003-02-24 04:37:20 +00:00
Paweł Kołodziejski
0706785d6d improved o6_stampObject func
svn-id: r6635
2003-02-22 20:57:57 +00:00
Paweł Kołodziejski
fc20efecfe correct o6_findAllObjects to match disassembly
svn-id: r6634
2003-02-22 13:08:54 +00:00
Paweł Kołodziejski
ef666a9019 cleanup o6_unknownE0
svn-id: r6633
2003-02-22 12:27:50 +00:00
Paweł Kołodziejski
6f0dfa402c some cleanup a pickVarRandom func
svn-id: r6632
2003-02-22 11:56:25 +00:00
Paweł Kołodziejski
373e845554 improved a little akos_queCommand func
svn-id: r6631
2003-02-22 10:39:50 +00:00
Jonathan Gray
d2ed6d1ace add o6_shuffle and stub for o6_localizeArray
svn-id: r6629
2003-02-21 00:42:51 +00:00
Paweł Kołodziejski
abb308c6db added more o6_pickVarRandom implementation
svn-id: r6628
2003-02-20 21:05:56 +00:00
Jonathan Gray
4c7aaba732 fix typo
svn-id: r6627
2003-02-20 02:10:39 +00:00
Max Horn
a6abd6bb13 Patch #689271: Usage bits fix
svn-id: r6626
2003-02-19 14:35:24 +00:00
Jonathan Gray
ef8196befd make pickVarRandom stub print out its argument list to the console
svn-id: r6625
2003-02-19 01:42:21 +00:00
Jonathan Gray
5c0cfe392b stub opcode E0 which makes moondemo and fbdemo start yay
svn-id: r6624
2003-02-18 23:59:54 +00:00
Max Horn
afbc458b3c cleanup
svn-id: r6621
2003-02-18 01:51:05 +00:00
Jonathan Gray
d5e8f369a2 change getDateTime to be a v6 opcode, and hopefully not break anything
svn-id: r6619
2003-02-18 00:13:24 +00:00
Jonathan Gray
c86cc94deb pickVarRandom stub
svn-id: r6618
2003-02-17 21:42:33 +00:00
Jonathan Gray
516f970e64 not sure if all of these AFTER_V7 for NEW_COSTUMES changes are needed but it won't hurt in any event
svn-id: r6617
2003-02-17 21:40:13 +00:00
Jonathan Gray
5b1983587c oops
svn-id: r6615
2003-02-17 10:40:02 +00:00
Jonathan Gray
e909c6b86d unstub stopTalking as the relevant function stopTalk() already exists in scummvm, add an attempt at findAllObjects that is hopefully not totally wrong, puttmoon now crashes on finding an AKOS block when it is expecting COST, some surgery may be required as all the AKOS stuff seems to be wrapped up in GF_AFTER_V7
svn-id: r6614
2003-02-17 10:14:43 +00:00
Max Horn
ecd84d8585 fixed warning
svn-id: r6613
2003-02-16 18:29:22 +00:00
James Brown
6351fe7d05 Patch 684732: CMI Walkbox Fix - really, this does seem to be the only solution
svn-id: r6612
2003-02-16 16:54:17 +00:00
Jonathan Gray
656bde5aa9 change o6_uknownCD name for o6_stampObject
svn-id: r6611
2003-02-16 14:52:25 +00:00
Jonathan Gray
abe76691bc add stubs for openFile closeFile and deleteFile opcodes
svn-id: r6608
2003-02-15 09:39:52 +00:00
James Brown
d054457496 Patch #682981: Experimental translation optimisation (version 2), and
#683384: Smush Regression Workaround

svn-id: r6607
2003-02-14 16:01:55 +00:00
Jonathan Gray
db0997e890 add stub for o6_stopTalking
svn-id: r6606
2003-02-14 08:12:45 +00:00
Max Horn
cc5df1b543 cleanup
svn-id: r6594
2003-02-08 02:00:22 +00:00
Max Horn
24cba45574 more access cleanup; also reorderd some method/function declarations in class Scumm
svn-id: r6593
2003-02-08 01:27:21 +00:00
Max Horn
5863805e2c more stuff made 'protected'
svn-id: r6592
2003-02-08 00:38:17 +00:00
James Brown
270e95a655 Patch 679354: ComI actor redraw patch
svn-id: r6590
2003-02-07 19:24:34 +00:00
Max Horn
a6cbfebf6d removed an obsolete member var, and started to make Scumm member vars protected (had to make some exception; the code which makes these exceptions necessary should be revised)
svn-id: r6589
2003-02-06 21:32:20 +00:00
Jonathan Gray
a3f0758bdd change translateText as per erik's patch, although if this is failing because the text is already translated we should probably be avoiding calling translateText multiple times for the same strings in the first place
svn-id: r6584
2003-02-03 15:38:54 +00:00
Jonathan Gray
b5d15825d3 revert part of the no sound device present stuff that was causing speech to finish prematurely
svn-id: r6583
2003-02-03 12:59:54 +00:00