Commit Graph

340 Commits

Author SHA1 Message Date
Eugene Sandulenko
0389bd0c4b HUGO: Fix compilation 2011-03-17 17:46:38 +02:00
Eugene Sandulenko
4ea65d0a1e HUGO: renamed guard #defines 2011-03-17 17:31:09 +02:00
Eugene Sandulenko
901b5e2097 HUGO: Initial work on user input dialog 2011-03-17 17:31:05 +02:00
Eugene Sandulenko
c813391455 HUGO: Renamed menu.* to dialogs.* 2011-03-17 17:31:02 +02:00
strangerke
9fb28410b5 HUGO: Misc savegame modifications
- Add initial savegame on slot 0
- Save viewstate as it may now contain several different values when saving
- Fix loading from GMM
- Implement ctrl-N
2011-03-08 00:21:02 +01:00
strangerke
29b5b4afa6 HUGO: Fix registration messages for H1 Dos Freeware version (in intro) 2011-03-07 19:40:20 +01:00
Max Horn
e9dad7859c HUGO: Silence GCC warning 2011-03-02 14:07:46 +01:00
D G Turner
22ebc2b724 HUGO: Correct 2 Memory Leaks in DAT Object Loading. 2011-03-01 07:37:26 +00:00
D G Turner
95b1bfa0be HUGO: Correction for Schedule saveActions() mistake. 2011-03-01 07:02:21 +00:00
strangerke
d05428015e HUGO: Rewrite saveActions() and readActions() in order to be platform and endian safe.
This breaks (again) the savegame file formats... Hopefully for the last time
2011-03-01 00:44:28 +01:00
strangerke
41927e0f6d HUGO: cleanup, fix several bad indirections (thanks LordHoto) 2011-02-28 23:15:06 +01:00
strangerke
560eb302f1 HUGO: Fix assert while saving under linux 2011-02-28 21:58:10 +01:00
strangerke
1b16b482f9 HUGO: Remove forgotten debug message 2011-02-28 00:59:38 +01:00
strangerke
a4d4dc81a9 HUGO: rewrite saveEvents() and restoreEvents() in order to be endian and platform safe 2011-02-28 00:58:25 +01:00
strangerke
02e51f9de5 HUGO: Set all the palette instead of only one color in remapPal.
This fixes the palette issue after the cave in H3
2011-02-27 11:10:09 +01:00
strangerke
a99b394836 HUGO: Better fix for graphics glitches in DOS versions, fix H3 ending animation 2011-02-27 01:04:49 +01:00
strangerke
756a343cb8 HUGO: Fix graphic glitches in DOS versions 2011-02-26 14:06:30 +01:00
strangerke
fbf41fc66a HUGO:
- Increase savegame version, as it has changed due to RGBa->RGB modification
- Fix regression in restorePal()
- Implement load from GMM
2011-02-24 19:59:36 +01:00
strangerke
38f70f66f0 HUGO: Fix crash when Hugo.dat not found (or wrong version detected) 2011-02-20 11:33:17 +01:00
strangerke
93f25b73be HUGO/TOOLS: reorder things in HUGO.DAT, move from RGBA to RGB 2011-02-20 11:32:00 +01:00
strangerke
bb51d090a8 HUGO: Fix a bug in setCursorPal() introduced by recent palette modifications 2011-02-20 10:39:32 +01:00
strangerke
c9223b9b9b HUGO: Some more refactoring 2011-02-20 10:37:41 +01:00
Johannes Schickel
e21d6e0d11 Merge branch 'osystem-palette' of https://github.com/lordhoto/scummvm into master
Conflicts:
	backends/platform/android/android.cpp
	engines/sci/graphics/screen.cpp
	engines/sci/graphics/transitions.cpp
2011-02-19 21:46:45 +01:00
strangerke
2ad969bcac HUGO: Remove extra spaces at end of lines 2011-02-18 22:43:38 +01:00
strangerke
ec559360ab HUGO: Move several short function bodies from headers to cpp files 2011-02-18 22:24:32 +01:00
strangerke
399b59a583 HUGO: Avoid duplicated code in functions related to HUGO.DAT 2011-02-18 08:11:55 +01:00
Johannes Schickel
a02454644a Merge branch 'master' into osystem-palette
Conflicts:
	backends/platform/wii/osystem_gfx.cpp
2011-02-15 23:42:50 +01:00
strangerke
2f0b35bbb5 HUGO: Replace cypher by a global variable, clean engine destructor 2011-02-15 19:30:15 +01:00
strangerke
402ac930fe HUGO: more refactoring and encapsulation 2011-02-15 10:15:21 +01:00
Johannes Schickel
c796dbe7c2 HUGO: Adapt to the setPalette RGBA->RGB change.
This is currently done by converting the internal palette from RGBA(?) to RGB
when setPalette / replaceCursorPalette is called.

This change is not tested, since I do not have any Hugo game.
2011-02-14 17:08:32 +01:00
strangerke
97852d473e HUGO: Some more refactoring
Move _hotspots to mouse class and encapsulate it, rename some variables in route class
2011-02-14 08:31:01 +01:00
strangerke
1036979de3 HUGO: Fix a bug in engine destructor 2011-02-12 19:29:56 +01:00
strangerke
c04682b3ae HUGO: Start to simplify hugo.dat loading 2011-02-12 19:01:46 +01:00
Arnaud Boutonné
c846231af3 HUGO: Replace Common::File by Common::ReadStream in several functions
svn-id: r55897
2011-02-12 16:20:57 +00:00
Arnaud Boutonné
4ad7f20b77 HUGO: little optimization in decodeString(), cleanup
svn-id: r55894
2011-02-12 14:37:59 +00:00
Arnaud Boutonné
69d907151b HUGO: Cleanup based on Fingolfin comments
svn-id: r55887
2011-02-12 08:13:35 +00:00
Arnaud Boutonné
87ab737e6b HUGO: Cleanup: fix style issue in Doxygen comments
svn-id: r55884
2011-02-11 20:27:48 +00:00
Arnaud Boutonné
fffb8f5617 HUGO: Fix warning "virtual function override intended?" reported by LordHoto (thanks for the explanation)
svn-id: r55881
2011-02-11 07:42:35 +00:00
Arnaud Boutonné
7bca1f136c HUGO: Fix regression in H3: game exits at the end of the intro
svn-id: r55880
2011-02-11 07:24:42 +00:00
Arnaud Boutonné
3c5fb26a91 HUGO: refactoring: move boundaries to object class
svn-id: r55879
2011-02-11 07:12:29 +00:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Arnaud Boutonné
4917740b44 HUGO: Cleanup : some refactoring and encapsulation (thanks fuzzie for the help)
svn-id: r55831
2011-02-08 20:52:26 +00:00
Max Horn
2d1c8a3533 ALL: Fix whitespaces / indention
svn-id: r55818
2011-02-07 23:01:06 +00:00
Max Horn
41121be4d6 GUI: Rename SaveLoadChooser::runModal to runModalWithPluginAndTarget
This avoids hiding an overloaded virtual method, which in turn can
cause weird bugs (see also the next commit).

svn-id: r55815
2011-02-07 22:58:22 +00:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Alyssa Milburn
653196640a HUGO: Spelling fix.
svn-id: r55804
2011-02-07 16:39:10 +00:00
Arnaud Boutonné
e990453a4d HUGO: Fix leak (thanks digitall)
svn-id: r55789
2011-02-05 14:45:36 +00:00
Arnaud Boutonné
bc77c8534c HUGO: Fix 2 uninitialized variables
svn-id: r55788
2011-02-05 14:07:30 +00:00
Arnaud Boutonné
118ee375db HUGO: Increase the height of window view
This fixes a bug related to hotspots in H3 Win reported by D. Gray (in witch hut)

svn-id: r55775
2011-02-04 21:51:10 +00:00
Arnaud Boutonné
6a93178341 HUGO: Fix menu icon order (bug reported by D. Gray)
svn-id: r55774
2011-02-04 19:24:34 +00:00
Arnaud Boutonné
935b318798 HUGO: Suppress static variables (except one)
This also fixes the multiple-RTL related music bug reported by D. Gray

svn-id: r55758
2011-02-03 18:25:38 +00:00
Arnaud Boutonné
4263549536 HUGO: 'Constify' engine as much as possible
svn-id: r55741
2011-02-02 21:12:51 +00:00
Arnaud Boutonné
31fc032c27 HUGO: in the menu, show modified button before closing the menu, with a short delay.
Thanks _sev for the help!

svn-id: r55710
2011-02-01 20:45:22 +00:00
Arnaud Boutonné
088b5f7743 HUGO: Use a separate thread for honker player and fix ticks per seconds
This fixes the speaker music stopped by message boxes, and the speaker music itself.

svn-id: r55700
2011-02-01 00:08:12 +00:00
Arnaud Boutonné
1799c4f045 Hugo: Some cleanup
svn-id: r55690
2011-01-31 18:22:20 +00:00
Arnaud Boutonné
785f1776c4 HUGO: Fix warning reported by GCC
svn-id: r55670
2011-01-30 23:19:30 +00:00
Arnaud Boutonné
a07d37d3a5 HUGO:
- Replace several char* by Common::String
- Fix a bug in showDosInventory()

svn-id: r55669
2011-01-30 23:08:05 +00:00
Arnaud Boutonné
aba8451744 HUGO: Fix a crash in maze and a bug in lineHandler()
svn-id: r55651
2011-01-30 07:53:44 +00:00
Arnaud Boutonné
98e329bbd1 HUGO: Cleanup drawRectangle() and keyHandler()
svn-id: r55642
2011-01-29 23:05:12 +00:00
Arnaud Boutonné
946bdcd389 HUGO: Display all (clipped) object zones in God Mode
svn-id: r55614
2011-01-29 14:10:47 +00:00
Arnaud Boutonné
cfca829e46 HUGO: Add a function to display exit hotspots in God Mode
svn-id: r55599
2011-01-28 19:54:48 +00:00
Filippos Karapetis
b25a5d1862 HUGO: Fixed crash when an incorrect hugo.dat file is found
svn-id: r55572
2011-01-27 20:42:19 +00:00
Arnaud Boutonné
fb8b4e1016 HUGO: Handle mouse 'UP' events instead of 'DOWN'.
This fixes the multiple clicks on object + message reported by D.Gray

svn-id: r55569
2011-01-27 18:43:02 +00:00
Arnaud Boutonné
b7a8444992 HUGO: As requested by D. Gray, use 'exit' (DOS) command in Win versions
svn-id: r55557
2011-01-26 23:18:26 +00:00
Arnaud Boutonné
dc31f4b3e2 HUGO: Cleanup: Suppress an obsolete warning and a comment
svn-id: r55556
2011-01-26 22:50:36 +00:00
Arnaud Boutonné
b0def10892 HUGO: Ensure savegames are not impacted by unexpected ANULL actions, by replacing delEventType() and delQueue() in H1 Dos
svn-id: r55555
2011-01-26 20:03:12 +00:00
Sylvain Dupont
177b656edf HUGO: Fix some save/restore issues
Invalidates current savegames! (now version 3)

svn-id: r55540
2011-01-26 00:21:54 +00:00
Arnaud Boutonné
2846ce14f3 HUGO: Move text arrays to a separate class
svn-id: r55507
2011-01-25 00:32:48 +00:00
Arnaud Boutonné
f7f42fba21 HUGO: Get rid of (almost) all the remaining defines
svn-id: r55485
2011-01-23 22:51:12 +00:00
Arnaud Boutonné
caab214260 HUGO: Fix on more GCC warning
svn-id: r55454
2011-01-23 00:29:08 +00:00
Arnaud Boutonné
7f4e1bde1e HUGO: Fix several warnings
svn-id: r55453
2011-01-23 00:19:40 +00:00
Arnaud Boutonné
93409aa381 HUGO: Fix GCC compilation
svn-id: r55452
2011-01-23 00:08:47 +00:00
Arnaud Boutonné
3f6496d5b5 HUGO: Cleanup
Suppress almost all defines, rename constants

svn-id: r55451
2011-01-23 00:05:52 +00:00
Arnaud Boutonné
a321f2a007 HUGO: Merge misc versions of display, intro and scheduler classes
svn-id: r55365
2011-01-20 22:50:50 +00:00
David Turner
5a7e25a3a6 HUGO: Close Memory Leak in TopMenu Surfaces.
svn-id: r55363
2011-01-20 22:31:05 +00:00
Arnaud Boutonné
30a94d2af6 HUGO: Cleanup: Remove some C-style comments
svn-id: r55360
2011-01-20 19:33:31 +00:00
Arnaud Boutonné
878bedf454 HUGO: Move mouseHander() out of runMachine()
svn-id: r55332
2011-01-19 18:02:53 +00:00
Arnaud Boutonné
9058b6a88b HUGO: Add specific decodeString() for H1 Dos
This fixes act3 logic. 
Also move some functions from public to protected.

svn-id: r55325
2011-01-19 14:45:18 +00:00
Arnaud Boutonné
3ba7a21c62 HUGO: Merge the 2 versions of doAction, cleanup
svn-id: r55318
2011-01-19 00:49:49 +00:00
Arnaud Boutonné
6a586881af HUGO: Rename objNumb to objIndex when used as an index
svn-id: r55316
2011-01-18 21:32:18 +00:00
Arnaud Boutonné
801561e6bc HUGO: Clean up
- Suppress some obsolete comments
- Get rid of some magic numbers

svn-id: r55307
2011-01-18 18:26:33 +00:00
Arnaud Boutonné
4413754ad2 HUGO: Improve mouse support in H3 DOS version
- Fix description of Penelope lying (when using mouse)
- Use H3 Win logic in order to handle horizon
- Add a workaround for a data bug in scenery1.dat, fixing the
pathfinding bug in Crash screen

svn-id: r55292
2011-01-18 09:16:52 +00:00
Arnaud Boutonné
839926ef10 HUGO: Clean-up
Modify debug level for 2 debug messages, 
Suppress obsolete comments,
Fix typo in comment

svn-id: r55291
2011-01-18 08:32:10 +00:00
Arnaud Boutonné
ac6c88869e HUGO: Improve mouse support for DOS versions
- Enlarge Exit hotspots
- Fix newspaper issue in H2 Dos (screen 33)

svn-id: r55219
2011-01-13 00:32:10 +00:00
Arnaud Boutonné
3da25986d2 HUGO: Improve mouse support in DOS versions.
- Fix default verb for 'open door' in first screenActions
- Add 'go to' values on objects
- improve hotspot info related to objects

svn-id: r55213
2011-01-11 23:16:57 +00:00
Arnaud Boutonné
a9d3e5c284 HUGO: Fix typo in help message
svn-id: r55193
2011-01-09 22:43:25 +00:00
Arnaud Boutonné
01e43fa8dc HUGO: intros are now skippable
svn-id: r55192
2011-01-09 22:42:56 +00:00
Arnaud Boutonné
3c8689fb7b HUGO: Modify hint position when an object is selected
svn-id: r55181
2011-01-09 10:16:55 +00:00
Arnaud Boutonné
896d4947da HUGO: Fix an assert when mouse hit the top of the screen
svn-id: r55168
2011-01-08 17:26:39 +00:00
Arnaud Boutonné
2665194e6f HUGO: Merge inventory object and mouse cursor when selected
- Merge inventory object and mouse cursor into a new mouse cursor (looks better)
- Use 16 color mouse pointer
- Clean-up

svn-id: r55167
2011-01-08 16:56:52 +00:00
Arnaud Boutonné
868717b444 TOOLS: Add Dos intro music number in hugo.dat
svn-id: r55145
2011-01-07 15:14:38 +00:00
Arnaud Boutonné
fc130351f3 HUGO: Fix GCC warnings, second try (sorry)
svn-id: r55134
2011-01-06 14:30:34 +00:00
Arnaud Boutonné
910d2d577a HUGO: Fix GCC warnings
svn-id: r55133
2011-01-06 14:16:23 +00:00
Arnaud Boutonné
46e5149269 HUGO: Implement DOS player
svn-id: r55132
2011-01-06 14:06:04 +00:00
Arnaud Boutonné
bb9ad6afe4 HUGO: Improve intro in H3 Dos
After a check on youtube (clone2727), fix the character used 
in the map during intro in H3 DOS

svn-id: r55131
2011-01-06 07:54:23 +00:00
Matthew Hoops
0338febe57 HUGO: Correct font sizes used in the Hugo1 DOS intro
svn-id: r55129
2011-01-05 23:48:44 +00:00
Arnaud Boutonné
9dde7e2b87 HUGO: Little cleanup
svn-id: r55128
2011-01-05 23:39:36 +00:00
Arnaud Boutonné
7b1e6bd2f8 HUGO: Fix warning using GCC
svn-id: r55127
2011-01-05 22:35:07 +00:00
Arnaud Boutonné
0ac25c43a0 HUGO: Use Win2 fonts in intro.
Win1 font is loaded too, but fails as it's not yet supported

svn-id: r55126
2011-01-05 22:28:37 +00:00
Eugene Sandulenko
11780744c2 HUGO: Proper implementation for menu closing when clicked outside of it
svn-id: r55121
2011-01-04 21:45:09 +00:00