Filippos Karapetis
d99aa0f126
More renaming
...
svn-id: r47009
2010-01-05 01:37:57 +00:00
Matthew Hoops
2f1a909696
Fix compile.
...
svn-id: r47008
2010-01-05 01:29:04 +00:00
Filippos Karapetis
84cd8d2dc7
Renamed /gui to /graphics and /sfx to /sound, to better illustrate their purpose
...
svn-id: r47007
2010-01-05 01:22:16 +00:00
Matthew Hoops
d8c59f5baa
Disable the planeLeft/planeTop code as it doesn't work under the current code (and left a FIXME explaining why it doesn't work).
...
svn-id: r47006
2010-01-05 01:14:08 +00:00
Filippos Karapetis
f66d5a7f53
SCI: Removed the old graphics code
...
svn-id: r47005
2010-01-05 00:54:53 +00:00
Filippos Karapetis
86cad51d07
Set the new sound code as default
...
svn-id: r47003
2010-01-05 00:25:49 +00:00
Martin Kiewitz
575bc45301
SCI: adjusting cel drawing according to left/top of plane
...
svn-id: r47002
2010-01-05 00:12:31 +00:00
Matthew Hoops
f8ba8886ce
Oops, forgot to commit this file too.
...
svn-id: r47001
2010-01-04 23:39:22 +00:00
Matthew Hoops
3c0805550e
Remove the planes/screenItems count and use the arrays' size() function instead.
...
svn-id: r47000
2010-01-04 23:37:29 +00:00
Matthew Hoops
c26ac879c6
Silence gcc warnings.
...
svn-id: r46999
2010-01-04 23:32:41 +00:00
Martin Kiewitz
6c001b7ffd
SCI: removing warning() from kFrameOut
...
svn-id: r46998
2010-01-04 23:31:50 +00:00
Martin Kiewitz
01d68c7eaf
SCI: adding #ifdefs for temporary gui work
...
svn-id: r46997
2010-01-04 23:17:51 +00:00
Martin Kiewitz
3767d3a718
SCI: now filtering screenItems against planes
...
svn-id: r46996
2010-01-04 23:09:57 +00:00
Martin Kiewitz
a6aaeb70e6
SCI: fix crash due accessing invalid object (implemented deleteScreenitem)
...
svn-id: r46993
2010-01-04 22:23:45 +00:00
Martin Kiewitz
05a16d7cba
SCI: surprise for this DrMcCoy guy
...
svn-id: r46992
2010-01-04 22:14:34 +00:00
Walter van Niftrik
184090cb46
SCI: Add support for SCI2 to AvoidPath.
...
svn-id: r46986
2010-01-04 20:52:25 +00:00
Martin Kiewitz
39cf9576af
SCI/newmusic: initialize _volume in constructor
...
svn-id: r46984
2010-01-04 19:50:58 +00:00
Filippos Karapetis
b9c8e6edb8
Code optimization: removed unneeded string comparisons when executing a sound command (including cmdUpdateCues, which is executed very often)
...
svn-id: r46983
2010-01-04 19:39:33 +00:00
Johannes Schickel
590a687ce1
Comment out unused variable.
...
svn-id: r46982
2010-01-04 18:33:31 +00:00
Filippos Karapetis
97fc845a07
SCI/new music code: Fixed the code that handles mixed Adlib/MIDI mode, and added better comments on what it actually does
...
svn-id: r46981
2010-01-04 18:24:58 +00:00
Vladimir Menshakov
89e18f5f12
original code uses exclusive random intervals
...
svn-id: r46980
2010-01-04 18:10:45 +00:00
Vladimir Menshakov
fe2529ce17
fixed flame effect
...
svn-id: r46979
2010-01-04 18:06:59 +00:00
Matthew Hoops
8cc208ba2e
Minor cleanup; remove GF_10TH, it's not used or needed anywhere.
...
svn-id: r46978
2010-01-04 17:37:25 +00:00
Matthew Hoops
380190ee12
Fix a memory leak spotted by cppcheck. Thanks salty-horse\!
...
svn-id: r46977
2010-01-04 17:30:47 +00:00
Matthew Hoops
bf3973051b
Merge the Mohawk Video class into QTPlayer and general cleanup.
...
svn-id: r46976
2010-01-04 17:27:36 +00:00
Martin Kiewitz
01eb329be2
SCI: kPalette / animate adjustments to behave more like sierra sci, also doesnt crash in island of brain anymore
...
svn-id: r46975
2010-01-04 16:44:58 +00:00
Filippos Karapetis
8cc690935a
Updated comment
...
svn-id: r46974
2010-01-04 16:18:35 +00:00
Filippos Karapetis
5560f93c2a
SCI/new sound code: update sound cues when kGetEvent() is called, instead of kAnimate(), fixes music fading in LSL3
...
svn-id: r46973
2010-01-04 16:16:58 +00:00
Martin Kiewitz
f245917d6f
SCI/newmusic: fadeout in sci0 (not stopping music yet), revert of SoundResource changes
...
svn-id: r46972
2010-01-04 15:17:46 +00:00
Filippos Karapetis
d437b25c57
SCI/new music: Resolved another possible deadlock when pausing all sounds
...
svn-id: r46971
2010-01-04 14:43:14 +00:00
Filippos Karapetis
60ece55fb9
Fallback detector:
...
- Added detection for SCI2 games (GK1, PQ4, QFG4)
- Rewrote the way demos are detected
- Games are no longer distinguished from the existence of certain files
svn-id: r46970
2010-01-04 13:50:43 +00:00
Martin Kiewitz
01ebbcf101
SCI: channels[] work, sci0 fading still not working (volume is changed though)
...
svn-id: r46969
2010-01-04 13:21:35 +00:00
Vladimir Menshakov
50245ba571
added idle animation
...
svn-id: r46968
2010-01-04 11:12:19 +00:00
Filippos Karapetis
c25f24efc7
Removed the now unused GuiDummy class
...
svn-id: r46967
2010-01-04 08:34:07 +00:00
Filippos Karapetis
3218da8975
SCI/new music code: Now the the music driver to use is obtained directly from the sound options, instead of asking for a driver which supports the requested MIDI driver flags
...
svn-id: r46966
2010-01-04 08:28:09 +00:00
David Turner
ae9cf4d51e
Mohawk : Improved code formatting conventions compliance.
...
svn-id: r46965
2010-01-04 08:10:29 +00:00
Filippos Karapetis
ed06df7a25
SCI/new music code: The number of voices is now obtained from the MIDI driver
...
svn-id: r46964
2010-01-04 08:06:11 +00:00
Martin Kiewitz
8fb870b0e3
SCI/newmusic: support for SCI0 fading, doesnt work yet because channels[] is currently not correctly filled out inside SoundResource class - because it wasnt previously needed
...
svn-id: r46963
2010-01-03 23:30:23 +00:00
Filippos Karapetis
54dbd75ed9
Code beautification (fixes a false positive, too)
...
svn-id: r46960
2010-01-03 22:54:51 +00:00
Filippos Karapetis
c0aad0508c
Renamed SCI_VERSION_AUTODETECT to SCI_VERSION_NONE to signify its actual purpose
...
svn-id: r46959
2010-01-03 22:50:39 +00:00
Johannes Schickel
b2355cac9f
- Remove unsafe default constructor of Audio::Timestamp.
...
- Add an assert which prevents the _frameRate from being 0 in the Audio::Timestamp constructor.
svn-id: r46958
2010-01-03 22:41:35 +00:00
Arnaud Boutonné
5433ba01fa
Mohawk : For what it's worth, Add detection for a french "in the 1rst degree"
...
svn-id: r46957
2010-01-03 22:11:08 +00:00
Filippos Karapetis
b92a744a04
sane_nodep() and sane_listp() should not be dummy functions when DISABLE_VALIDATIONS is set, so that the engine doesn't try and refer to null pointer objects (and subsequently crash)
...
svn-id: r46956
2010-01-03 21:53:34 +00:00
Filippos Karapetis
dccc1db768
Fixed regression from commit #46950 (fixes KQ6CD, Pharkas CD, and others)
...
svn-id: r46955
2010-01-03 21:51:30 +00:00
Arnaud Boutonné
e71754b64d
Add detection for a french Myst
...
svn-id: r46954
2010-01-03 21:50:13 +00:00
Max Horn
df81b68967
Change BS 1 & 2 to I & II (see discussion on -devel)
...
svn-id: r46951
2010-01-03 21:20:05 +00:00
Martin Kiewitz
d13b23d688
SCI/newmusic: this fix will make qfg1vga character selection music work
...
svn-id: r46950
2010-01-03 21:17:58 +00:00
Filippos Karapetis
781dd3b183
Fixed compilation with DISABLE_VALIDATIONS, and fixed a bug in kPrevNode
...
svn-id: r46949
2010-01-03 21:12:44 +00:00
Eugene Sandulenko
c36caea501
Use new ADGF flag, ADGF_USEEXTRAASTITLE for AGI Fanmade games for giving them
...
more user-friendly names.
svn-id: r46948
2010-01-03 21:09:26 +00:00
Eugene Sandulenko
eccf0cc429
Introduced new ADGF flag ADGF_USEEXTRAASTITLE.
...
Documented ADFlags.
svn-id: r46946
2010-01-03 21:07:40 +00:00
Torbjörn Andersson
c83058d30b
LordHoto spotted the same kind of overlapping strcpy() call in one more place.
...
I didn't notice it because it never executed that part when I used Valgrind.
svn-id: r46945
2010-01-03 20:47:04 +00:00
Torbjörn Andersson
f15db40927
Don't uses strcpy() on overlapping memory areas. It's undefined.
...
svn-id: r46944
2010-01-03 20:42:51 +00:00
Filippos Karapetis
eeb3502fa4
Made the "version" command more verbose, listing all the automatically detected game features, along with the detected SCI version
...
svn-id: r46943
2010-01-03 20:18:36 +00:00
Eugene Sandulenko
8ad5694cb1
Reduce header dependencies for AGI engine.
...
svn-id: r46942
2010-01-03 20:15:44 +00:00
Torbjörn Andersson
72eb9ec9ea
Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
...
before freeing it, which isn't necessary.
svn-id: r46941
2010-01-03 19:37:43 +00:00
Filippos Karapetis
870c99b4d4
SCI/new music code: Only reference the mixer for music slots which actually contain digital audio data
...
svn-id: r46939
2010-01-03 18:43:17 +00:00
Filippos Karapetis
1b6b4c5c08
Fixed memory leak (as reported by eriktorbjorn)
...
svn-id: r46938
2010-01-03 18:37:13 +00:00
Filippos Karapetis
7fa62cdd2b
SCI/new music code: Proper handling of disposed sounds when loading a saved game. Also, addressed a possible mutex issue with cmdPauseSound
...
svn-id: r46937
2010-01-03 18:06:48 +00:00
Arnaud Boutonné
0cfd6a4d76
Fix a buffer overflow (thanks to syke) and modify the way the instruments are loaded (bytes instead of uint16). This (sadly) doesn't fix the MDY player.
...
svn-id: r46936
2010-01-03 18:04:52 +00:00
Lars Skovlund
6cc4dacf5e
SCI: Support pointer arithmetics in +ag, +agi, etc. too
...
svn-id: r46935
2010-01-03 17:40:17 +00:00
Filippos Karapetis
6a25bd2b8a
The backtrace command now outputs to the graphical console
...
svn-id: r46934
2010-01-03 16:50:27 +00:00
Vladimir Menshakov
6271dc2821
'normal' game speed is about 10fps, not 12
...
svn-id: r46933
2010-01-03 16:43:59 +00:00
Filippos Karapetis
913616dc98
Removed junk characters
...
svn-id: r46931
2010-01-03 16:14:09 +00:00
Filippos Karapetis
56963dc092
SCI/new music code: Some cleanup. Previous commit (rev 46928) should read: "Added some more commands from BaseSongIterator::parseMidiCommand()"
...
svn-id: r46930
2010-01-03 16:11:31 +00:00
Vladimir Menshakov
3da232ffdc
more walking frame offsets correction
...
svn-id: r46929
2010-01-03 16:03:27 +00:00
Filippos Karapetis
cf5e5f6c92
svn-id: r46928
2010-01-03 15:59:43 +00:00
Vladimir Menshakov
d7f5f078b0
fixed typo
...
svn-id: r46927
2010-01-03 15:25:07 +00:00
Vladimir Menshakov
85c8b370cf
added metropolis/TEENAGENT logo
...
svn-id: r46926
2010-01-03 15:18:20 +00:00
Filippos Karapetis
2f23eb99ee
The "room" command can now set the current room number, too (more straightforward than changing global var 13)
...
svn-id: r46925
2010-01-03 15:08:26 +00:00
Filippos Karapetis
454fb24c85
SCI/new music code: don't throw warnings for MIDI commands which are handled by the music driver
...
svn-id: r46924
2010-01-03 14:39:38 +00:00
Filippos Karapetis
72a020320f
SCI/new music code:
...
- sounds are no longer stopped in cmdUpdateCues if their signal is set
- cmdSetSoundVolume no longer throws a warning if it can't find the associated sound (in some games, it's called before the actual sound is loaded)
- removed unused parameters to the SciMusic() class and to MusicEntry::onTimer()
- removed a hack to get the sound loop selector
svn-id: r46923
2010-01-03 13:28:59 +00:00
Martin Kiewitz
2861cab322
SCI: windowMgr port fix (using id 1 now on that port instead of 0, still accessible via id 0 as well) fixes qfg1vga, sq4 (-10 pixel walking) and castle of dr. brain (computer room puzzle)
...
svn-id: r46922
2010-01-03 13:13:13 +00:00
Vladimir Menshakov
3fbf1293d8
started music before logo
...
svn-id: r46921
2010-01-03 10:46:14 +00:00
Vladimir Menshakov
1abbfb810f
improved walking animation once again
...
svn-id: r46920
2010-01-03 10:30:38 +00:00
David Turner
715b48b987
Mohawk : Stop Myst Script Opcode 200 continuously reloading the same image...
...
svn-id: r46919
2010-01-03 08:27:33 +00:00
Matthew Hoops
986a75b7ee
Implement kInPolygon for SCI32. GK1 now responds when you click on things.
...
svn-id: r46918
2010-01-03 05:29:30 +00:00
Matthew Hoops
7d5e91337e
Fix the GK1 view segfault. szUnpacked was overflowing in SCI32 -- it should be uint32. GK1 now is a bit more playable, with many many glitches.
...
svn-id: r46917
2010-01-03 04:46:00 +00:00
Matthew Hoops
6ba2bd8bfc
Add support for wave files in the audio volume. This is used in Pharkas CD and GK1 CD.
...
svn-id: r46916
2010-01-03 03:37:50 +00:00
Vladimir Menshakov
711fcccfa6
fixed font color and positioning for the well callback
...
svn-id: r46915
2010-01-03 02:04:43 +00:00
Vladimir Menshakov
2fc79f197f
improved accuracy of the speed calculations
...
svn-id: r46914
2010-01-03 01:57:05 +00:00
Vladimir Menshakov
0b92bf472a
fixed zero speed issue
...
svn-id: r46913
2010-01-03 01:52:36 +00:00
Vladimir Menshakov
ce40ad325c
removed noisy debug message
...
svn-id: r46912
2010-01-03 01:40:10 +00:00
Vladimir Menshakov
c951b14a15
moved scripted mark's animation after all sprites
...
svn-id: r46911
2010-01-03 01:25:08 +00:00
Vladimir Menshakov
1131c48f26
fixed broken pathfinding
...
svn-id: r46910
2010-01-03 01:10:07 +00:00
Vladimir Menshakov
58f4794221
increased vertical speed
...
svn-id: r46909
2010-01-03 01:07:59 +00:00
Vladimir Menshakov
ea513b3304
fixed h/v animation switch ratio
...
svn-id: r46908
2010-01-03 01:06:42 +00:00
Vladimir Menshakov
dcc4f179ac
fixed vertical/horizontal speed ratio
...
svn-id: r46907
2010-01-03 00:57:20 +00:00
Vladimir Menshakov
f1d800cb9d
improved mark's animation.
...
svn-id: r46906
2010-01-03 00:55:56 +00:00
Vladimir Menshakov
400958b045
do not show logo while loading save
...
svn-id: r46905
2010-01-02 22:40:17 +00:00
Vladimir Menshakov
e2d14e0499
fixed memory leak
...
svn-id: r46904
2010-01-02 22:32:24 +00:00
Vladimir Menshakov
09a197d125
added unlogic logo
...
svn-id: r46903
2010-01-02 22:30:43 +00:00
Martin Kiewitz
baf8575e36
SCI: adjusted kDisplay change to occur SCI1late
...
svn-id: r46902
2010-01-02 22:04:05 +00:00
Martin Kiewitz
2f65f8f7c6
SCI: kDisplay difference in SCI0 (fixes colonels bequest copy protection screen)
...
svn-id: r46901
2010-01-02 21:55:39 +00:00
Vladimir Menshakov
4640b35832
removed useless `system' pointer from render()
...
svn-id: r46900
2010-01-02 21:32:34 +00:00
Vladimir Menshakov
3e0588c98c
made fadein/out asynchronous, added fade type stub
...
svn-id: r46899
2010-01-02 21:21:32 +00:00
Vladimir Menshakov
2b083c491d
added fadeout tables
...
svn-id: r46898
2010-01-02 20:44:47 +00:00
Willem Jan Palenstijn
13a242838f
SCI/new music code: Don't stop notes when looping for a hold
...
svn-id: r46897
2010-01-02 20:20:36 +00:00
Filippos Karapetis
0b3d3c37a5
SCI/new music code: Fixed sound patch loading when restoring a saved game
...
svn-id: r46896
2010-01-02 19:24:52 +00:00
Filippos Karapetis
48f023b472
Properly fixed cmdUpdateCues() for SCI0, removing a hack
...
svn-id: r46895
2010-01-02 19:01:34 +00:00
Willem Jan Palenstijn
5c56d726b2
SCI/new music code: Improve midi hold handling a bit. Still broken.
...
svn-id: r46893
2010-01-02 18:16:12 +00:00