36117 Commits

Author SHA1 Message Date
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
Johannes Schickel
770b2f78d4 Setup the dimensions of GuiObject in the constructor, by using reflowLayout.
This properly initializes _x, _y, _w and _h, which might be used
uninitialized otherwise. This probably lead to a creash for _sev,
when drawing the tab widget, before GuiObject::reflowLayout had
been called. FYI GuiObject::reflowLayout is usually only called
on layout changes (i.e. resolution changes etc.), thus it might
not be called before drawing a newly created widget.

svn-id: r46947
2010-01-03 21:07:56 +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
Yotam Barnoy
910ffb53a0 PSP: Limited movement of virtual keyboard onscreen
svn-id: r46940
2010-01-03 19:27:20 +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
Eugene Sandulenko
eed7635297 Sort language list (and showing that Lure is really broken).
svn-id: r46932
2010-01-03 16:33:03 +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