Filippos Karapetis
9717686337
MADE: Fixed bug #3087849 - "MADE: Code analysis warnings"
...
svn-id: r53487
2010-10-15 13:00:19 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Benjamin Haisch
dbf850999a
Remove some unused struct members
...
svn-id: r46245
2009-12-03 19:18:47 +00:00
Benjamin Haisch
0335a37b05
Fixed clipping-related bug (bug #2826036 )
...
svn-id: r44439
2009-09-28 07:28:20 +00:00
Benjamin Haisch
0762bb7cf6
- PMV player: Use frame count from PVM file and fix incorrect "invalid chunk type" warning
...
- Fix sprite drawing glitch with vertically flipped sprites (bug #2825925 )
svn-id: r43521
2009-08-18 19:42:13 +00:00
Filippos Karapetis
6852080916
Merged loadRGBPalette() inside setRGBPalette() (that's the only place it's used and where the screen palette is set). Added a wrapper for copyRectToScreen(), to remove some duplicated code inside the ScreenEffects() class
...
svn-id: r39396
2009-03-14 15:43:37 +00:00
Filippos Karapetis
498a355a74
Reduced CPU usage of the MADE engine by about 10% (by profiling the code)
...
- Added delays in places where the screen gets updated
- Moved event polling inside sfPollEvent() (cause that's where events are polled), instead of after each opcode
svn-id: r39392
2009-03-14 14:58:19 +00:00
Filippos Karapetis
6225bf905f
Do not update the screen while waiting
...
svn-id: r39390
2009-03-14 13:42:43 +00:00
Benjamin Haisch
f525575495
- Applied patch #2668849 by sunmax
...
svn-id: r39271
2009-03-09 18:19:53 +00:00
Benjamin Haisch
5b8105afb3
- Added support for The Manhole EGA version
...
- Support for 'chunked' picture resources and EGA pictures
- Improved the mouth sync in RtZ (still not perfect, though)
- Removed obsolete TODOs
- Fixed sfPlayMovie to return if the movie playback was aborted or not; this is used by RtZ to determine if it should display the credits screen after the intro movie
svn-id: r35997
2009-01-22 13:04:29 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Benjamin Haisch
a776beb2b9
Improved updateScreenAndWait; the mouse cursor is less jerky now in some scenes in Manhole:N&E
...
svn-id: r34638
2008-09-23 23:16:47 +00:00
Max Horn
bd296a45fa
Fixed unitialized variables
...
svn-id: r32865
2008-07-01 10:33:25 +00:00
Benjamin Haisch
b6ad2b0035
- Fixed umlauts in printText
...
- Don't exit when a pmv video couldn't be found
svn-id: r32817
2008-06-27 09:57:38 +00:00
Benjamin Haisch
b9776d46b2
- Implemented opcodes: sfHomeText, sfDrawAnimPic
...
- Comments on unneeded opcodes
- Simplified getting/setting strings in Objects
svn-id: r32361
2008-05-29 12:57:11 +00:00
Sven Hesse
ab6c82a850
Silenced a signed/unsigned comparison warning
...
svn-id: r32355
2008-05-28 22:42:15 +00:00
Benjamin Haisch
df0e072a1b
Fixed a crash in LGOP2 when attempting to get a sprite item from an empty array.
...
svn-id: r32348
2008-05-28 20:12:01 +00:00
Benjamin Haisch
aa02a6758a
- Hopefully fixed 'responsiveness' of the mouse cursor/event handling
...
- Disabled auto dirty rects which caused major gfx problems
- Added default mouse cursor for Manhole: N&E
- Fixed sound rate for Manhole: N&E
- Don't automatically show mouse cursor when a new cursor was loaded
svn-id: r32279
2008-05-26 07:27:46 +00:00
Benjamin Haisch
4074d49844
- Moved event polling from sfPollEvent to runScript
...
- LGOP2: Fixed problem where Barth's gun was drawn at the wrong position
svn-id: r32205
2008-05-21 10:07:33 +00:00
Filippos Karapetis
e20abe228d
Silenced an MSVC warning
...
svn-id: r32197
2008-05-20 18:19:32 +00:00
Filippos Karapetis
66ecacc7c3
Screen mask is now only used for V2 games
...
svn-id: r32147
2008-05-17 09:06:54 +00:00
Benjamin Haisch
0ec51de272
- Added some visual effects (palette fading etc.)
...
- Moved Screen::getAnimFrameCount directly into o1_GETFRAMECOUNT
- Renamed variables/cleanup
svn-id: r32104
2008-05-14 09:54:15 +00:00
Benjamin Haisch
16ac1bcebf
Changed clipping rectangles to use Common::Rect (thanks to [md5]/thebluegr)
...
svn-id: r32077
2008-05-12 22:28:52 +00:00
Benjamin Haisch
f54036b6a4
Implemented o1_EXCLUDEAREA for RtZ
...
svn-id: r32074
2008-05-12 21:47:38 +00:00
Sven Hesse
f833cf4c61
Muting "comparing signed and unsigned values" compiler warning
...
svn-id: r32072
2008-05-12 20:17:54 +00:00
Benjamin Haisch
9b911cadcd
Fixed printTextEx segment fault bug.
...
svn-id: r32071
2008-05-12 20:14:07 +00:00
Benjamin Haisch
11e6527674
Implemented o1_ADDMASK and o1_SETMASK for LGOP2
...
svn-id: r32066
2008-05-12 17:43:33 +00:00
Filippos Karapetis
601f0efdd4
Removed now obsolete FIXME
...
svn-id: r31964
2008-05-09 12:23:19 +00:00
Filippos Karapetis
a9b4058ba9
Fixed some game crashes which occurred when ProjectReader::purgeCache() got called:
...
- MIDI music data is marked to be deleted in o1_STOPMUS now, instead of o1_PLAYMUS.
- Added a FIXME to Screen::setFont() - purgeCache crashes the game if the active font is deleted
svn-id: r31948
2008-05-08 13:23:02 +00:00
Benjamin Haisch
b6d2cf3553
Implemented vertical/horizontal flipping of sprites.
...
svn-id: r31931
2008-05-07 17:29:46 +00:00
Benjamin Haisch
7509d66caf
Implemented savegame loading/saving and sprite clipping
...
Fixed bug in Screen::printTextEx
Implemented opcodes:
- o1_DRAWTEXT
- o1_DRAWMENU
- o1_MENUCOUNT
- o1_SAVEGAME
- o1_LOADGAME
- o1_GAMENAME
svn-id: r31794
2008-04-30 20:36:19 +00:00
Benjamin Haisch
fc6fe46951
Implemented text drawing and cleanup.
...
svn-id: r31756
2008-04-28 10:56:21 +00:00
Benjamin Haisch
3dc6263b17
Started work on text drawing code.
...
svn-id: r31719
2008-04-25 11:20:43 +00:00
Benjamin Haisch
efeb8a3193
Added (early) midi player code.
...
Added "screen flash" effect.
Implemented opcodes:
- o1_PLAYMUS
- o1_STOPMUS
- o1_ISMUS
- o1_FLASH
- o1_LOADSND
- o1_LOADMUS
svn-id: r31682
2008-04-23 23:22:02 +00:00
Benjamin Haisch
d0ad5867e0
Fixed palette issues when showing the inventory and the menu.
...
Moved drawing code from drawFlex/drawAnimFrame to drawSurface.
Implemented opcodes:
- o1_VISUALFX
- o1_SCREENLOCK
- o1_SETTIMER
- o1_SETGROUND
- o1_SETCLIP
- o1_SETEXCLUDE
svn-id: r31675
2008-04-23 20:12:06 +00:00
Filippos Karapetis
f1a27858d5
Added palette locking and some wip sound playing code. Some cleanup
...
svn-id: r31654
2008-04-22 07:40:28 +00:00
Filippos Karapetis
54485c24c5
Some palette related fixes
...
svn-id: r31650
2008-04-21 20:20:34 +00:00
Filippos Karapetis
169bf5ddba
More code merge
...
svn-id: r31649
2008-04-21 18:46:57 +00:00
Filippos Karapetis
36bec1d5c8
Code merge
...
svn-id: r31648
2008-04-21 18:40:28 +00:00
Benjamin Haisch
42e8f1f882
Fixed drawAnimFrame (don't draw anything if the frame number is invalid)
...
svn-id: r31642
2008-04-21 11:17:51 +00:00
Torbjörn Andersson
7e07dd5ec7
Changed spaces to tabs.
...
svn-id: r31610
2008-04-20 15:36:40 +00:00
Filippos Karapetis
d0590a09ea
Initial import of the work in progress MADE engine
...
svn-id: r31599
2008-04-20 14:43:56 +00:00