Commit Graph

29496 Commits

Author SHA1 Message Date
Willem Jan Palenstijn
fb8fafaf56 Fix reading corrupted saves.
svn-id: r38934
2009-02-27 19:50:22 +00:00
Willem Jan Palenstijn
fb552121d2 fix warnings and memleaks in savegame.cfsml
svn-id: r38933
2009-02-27 19:38:20 +00:00
Willem Jan Palenstijn
ede680738b sync savegame.cfsml with include/ dir changes
svn-id: r38932
2009-02-27 19:37:29 +00:00
Max Horn
debd029f10 corrected some typos
svn-id: r38931
2009-02-27 16:38:35 +00:00
Eugene Sandulenko
d53c75fc8f Fix code formatting
svn-id: r38930
2009-02-27 12:59:02 +00:00
Paweł Kołodziejski
4042eb8259 update
svn-id: r38929
2009-02-27 11:10:44 +00:00
Nicola Mettifogo
44906f574f The engine has now to build the drawing list for the graphic department, instead of setting visibility flags; the new field _prog has been added to GfxObj to help sorting the list.
The outcome is that cleaning up unused resources on location switches is now easier to manage, and less error prone.

svn-id: r38928
2009-02-27 08:56:19 +00:00
Nicola Mettifogo
e17a140019 Improved debugger output.
svn-id: r38927
2009-02-27 08:46:39 +00:00
Torbjörn Andersson
ce4d9bc066 Changing the visibility of the mouse means it has to be redrawn. At least, this
fixes a regression in Broken Sword 1 when using one inventory object on another
(if the cursor is partly beneath the inventory bar) for me.

svn-id: r38926
2009-02-27 05:58:08 +00:00
Torbjörn Andersson
53572f6c07 Committed patch #2606844 ("Fix crash when using BS1 without portuguese data").
Admittedly, I'm not really that familiar with BS1 resource management, but as
far as I can tell the patch just adds sanity checking, so it shouldn't hurt.

svn-id: r38925
2009-02-27 05:52:22 +00:00
Max Horn
7922eb5e32 Overhaul to the README:
* Added a quick start section
* Reduced indention for many lists, to use screen space better
* Rewrapped most sections to a column limit of 72 chars (not 
  enforced strictly, though, tried to make a compromise between
  readability, uniformity, good looks and common sense ;)
* Corrected/added a few minor things

svn-id: r38924
2009-02-27 05:22:16 +00:00
Torbjörn Andersson
349fce7454 Committed a slightly updated patch #2602772 ("Patches for BS1 bug ID #1977094")
to replace some missing subtitles with hard-coded ones.

svn-id: r38923
2009-02-27 05:20:37 +00:00
Max Horn
c053ef8c87 SCI: Remove empty include/ dir
svn-id: r38922
2009-02-27 02:24:29 +00:00
Max Horn
479751104f SCI: Renamed include/engine.h to engine/state.h; added a corresponding .cpp file with the EngineState constructor
svn-id: r38921
2009-02-27 02:23:40 +00:00
Max Horn
170916201c SCI: Moved almost all files from include/ to other dirs; only include/engine.h remains
svn-id: r38920
2009-02-27 02:23:00 +00:00
Max Horn
bf0860fc5e SCI: Commited file handling revamp, work in progress
svn-id: r38919
2009-02-27 01:17:24 +00:00
Willem Jan Palenstijn
5a5c51bb48 Reset successor variable after use.
This fixes a crash in SQ3 after reloading followed by restarting.

svn-id: r38918
2009-02-26 23:13:00 +00:00
Filippos Karapetis
c1fb06c162 Updated the MSVC project files of the SCI engine
svn-id: r38917
2009-02-26 23:04:50 +00:00
Filippos Karapetis
6c879e96d1 - Removed engine/sys_strings.*
- Renamed sys_string_t -> SystemString, sys_strings_t -> SystemStrings

svn-id: r38916
2009-02-26 23:03:35 +00:00
Andre Heider
2d1fd81f90 start out with an empty array of file handles, so the Enginestates matches between startup and restart. really check its size before accessing it (fixes LSL3 restart)
svn-id: r38915
2009-02-26 21:17:53 +00:00
Willem Jan Palenstijn
f8648767e4 fix graphics regression in Iceman caused by r38909
svn-id: r38914
2009-02-26 20:08:04 +00:00
Andre Heider
dbe632e8ed protect the sfx timer with the callbackMutex to fix the race the condition when restarting or restoring a game.
svn-id: r38913
2009-02-26 19:32:22 +00:00
Andre Heider
84daa0410f reinit sfx in game_init() when it got deinitialized in game_exit(), this unmutes the game after a restart.
shutdown sfx in game_exit() only if there is no EngineState successor (restored game) since gamestate_restore() already reinitialized it.

svn-id: r38912
2009-02-26 19:28:21 +00:00
Filippos Karapetis
73f1e8c85f Updated the MSVC project files of the SCI and parallaction engines
svn-id: r38911
2009-02-26 18:59:41 +00:00
Max Horn
79417f4d32 cleanup
svn-id: r38910
2009-02-26 16:33:48 +00:00
Max Horn
3343dca6dc SCI: Modified gfx_new_mode to take a Graphics::PixelFormat
svn-id: r38909
2009-02-26 16:16:53 +00:00
Max Horn
fde001ce81 SCI: Changed 'typedef enum { } NAME' into C++-style 'enum NAME { }'
svn-id: r38908
2009-02-26 16:16:46 +00:00
Max Horn
900dc048f4 SCI: Turned the crossblit code into a template
svn-id: r38907
2009-02-26 16:16:38 +00:00
Max Horn
e140188541 SCI: Some nitpick FIXMEs on incorrect opcode number comments ;)
svn-id: r38906
2009-02-26 16:16:30 +00:00
Max Horn
9515ae4ddc SCI: Moved gfx_line.cpp to line.h and turned _gfx_draw_line_buffer into a template
svn-id: r38905
2009-02-26 16:16:22 +00:00
Max Horn
edc4e58c9c SCI: Replaced #define hack to fake subclassing in C by regular C++ subclassing
svn-id: r38904
2009-02-26 16:16:13 +00:00
Nicola Mettifogo
09196a35ad Added filter to preserve needed Animation across location switch.
svn-id: r38903
2009-02-26 14:53:57 +00:00
Nicola Mettifogo
b76ad3dc4f changeLocation now uses the internal variable _newLocationName instead of an input parameter.
svn-id: r38902
2009-02-26 14:42:03 +00:00
Johannes Schickel
868b589af6 Commit patch #2641592 "Wrong type promotion for SharedPtr" with a slight formatting change.
svn-id: r38901
2009-02-26 13:54:21 +00:00
Willem Jan Palenstijn
1377a4b64c Clarify behaviour of gfxop_get_event().
svn-id: r38900
2009-02-26 12:10:11 +00:00
Johannes Schickel
d262d7773a Fix regression introduced with r38890, where the mouse cursor was redrawn every updateScreen call.
svn-id: r38899
2009-02-26 11:32:02 +00:00
Filippos Karapetis
387fcd101d Cleanup
svn-id: r38898
2009-02-26 10:44:25 +00:00
Nicola Mettifogo
88efc8603e Removed null*Ptr dummy objects, using SharedPtr's reset method to null pointers instead.
svn-id: r38897
2009-02-26 10:44:01 +00:00
Filippos Karapetis
2fbf626d09 Cleanup
svn-id: r38896
2009-02-26 10:31:48 +00:00
Filippos Karapetis
6f939ff6c8 Cleanup. Readded FIXME
svn-id: r38895
2009-02-26 09:44:06 +00:00
Nicola Mettifogo
76283e3f73 Merged walk code for NS, and simplified handling.
svn-id: r38894
2009-02-26 09:42:08 +00:00
Nicola Mettifogo
3efffe511b Fixed crashes and leaks when quitting BRA from menu and splash screen.
svn-id: r38893
2009-02-26 09:12:29 +00:00
Nicola Mettifogo
d5d006bb30 Cleanup of CommandExec and ProgramExec, and pushed down dependencies from exec.h.
svn-id: r38892
2009-02-26 06:16:35 +00:00
Max Horn
5093167fde cleanup
svn-id: r38891
2009-02-26 02:21:55 +00:00
Johannes Schickel
28d1fdcf24 - Fix cursor drawing bug on (cursor) palette change
- Fix cursor drawing when it was hidden before and no dirty rects are present
- Diese und die folgenden Zeilen werden ignoriert --

M    sdl/graphics.cpp

svn-id: r38890
2009-02-26 02:04:30 +00:00
Andre Heider
522063b28c fix read_SegManagerPtr to not read from an uninitialzed pointer
svn-id: r38889
2009-02-25 23:50:16 +00:00
Andre Heider
9af7fba681 reintroduce game_start_time (removed it in r38701), since the interpreter can be restarted and it can be retrieved via script function (eg. LSL3 about box)
svn-id: r38888
2009-02-25 21:43:57 +00:00
Filippos Karapetis
1786ecabbf Initial fix for the keypad keys. We still don't know the initial state of the caps lock etc keys, so an appropriate method will need to be added to OSystem
svn-id: r38887
2009-02-25 20:40:05 +00:00
Filippos Karapetis
71ae2d3aba Reverted my wrong commit #38870. Most of the key codes are handled by the engine itself, however there are cases where they are handled by the game scripts, e.g. in save/load dialogs. The arrow keys in the save/load dialogs should work properly again. The numpad keys still look to be broken by some other commit
svn-id: r38886
2009-02-25 19:52:17 +00:00
Max Horn
c199c6c6c4 cleanup
svn-id: r38885
2009-02-25 19:30:11 +00:00