Commit Graph

89 Commits

Author SHA1 Message Date
Matthew Hoops
eea482fa43 ALL: behaviour -> behavior 2011-05-25 10:50:46 -04:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
7c2323bdc3 AGI: Replace report() macro by debug() / warning()
This makes AGI quite a bit less noisy by default.

svn-id: r53868
2010-10-26 22:33:49 +00:00
Torbjörn Andersson
4543855eca AGI: Fix bug in cmd_cancel_line()
We have to update cursor position, not just terminate the input
buffer. This makes Ctrl-C work as intended, which fixes one half of
bug #3054184 ("SQ1 AGI: keyboard special keys are not functioning
properly"). I'm not sure if the second half actually is a bug. 

svn-id: r52899
2010-09-26 11:20:55 +00:00
Eugene Sandulenko
aea09cb3a0 AGI: Fix spelling and formatting
svn-id: r51310
2010-07-26 14:21:18 +00:00
Johannes Schickel
e75eee21e3 Use "true" instead of "1" in if statements to make clang a bit more happier with -Werror.
svn-id: r50943
2010-07-16 21:50:12 +00:00
Max Horn
e7da62763e AGI: Turn timerHack and curLogic into AgiEngine members; get rid of some #defines
svn-id: r50125
2010-06-21 21:33:22 +00:00
Max Horn
df569a6c82 AGI: Change AGI commands/opcodes to member methods
svn-id: r50124
2010-06-21 21:32:56 +00:00
Max Horn
da28fde4c6 AGI: Change some #defines to enums
svn-id: r50033
2010-06-18 22:07:32 +00:00
Eugene Sandulenko
88421532aa AGI: Implemented immediate update for most of gfx to match original.
This fixes many subtle effects as in many cases there were no
special pausing and engine relied only on the slowliness of the
machine.

svn-id: r49745
2010-06-15 10:32:25 +00:00
Eugene Sandulenko
ffc390e64c AGI: Fix bug #1945716.
Bug #1945716: "AGI: Fan(Kings Quest 2 1/4) - Sprite not erased".
Added a workaround, since it is design flaw of our rendering
system.

svn-id: r49742
2010-06-15 10:31:18 +00:00
Eugene Sandulenko
7034d071b6 AGI: proper fix for sprite leftover-related bugs. Removed workarounds.
svn-id: r49741
2010-06-15 10:30:54 +00:00
Eugene Sandulenko
295edafdc4 AGI: improve script-related debug output.
svn-id: r49740
2010-06-15 10:30:26 +00:00
Max Horn
d78dba3bca COMMON: Move Common::RandomSource to common/random.*
svn-id: r48279
2010-03-18 15:07:11 +00:00
Eugene Sandulenko
8ad5694cb1 Reduce header dependencies for AGI engine.
svn-id: r46942
2010-01-03 20:15:44 +00:00
Max Horn
50435d6bae AGI: Turn g_tickTimer & g_mouse into members of class AgiEngine resp. AgiBase
svn-id: r45259
2009-10-20 11:13:00 +00:00
Max Horn
03953bf292 AGI: Remove some global vars
svn-id: r45255
2009-10-19 22:51:37 +00:00
Eugene Sandulenko
0d4fc81698 Fix bug #2838551: "PSP: AGI games are unbearably slow"
svn-id: r43452
2009-08-16 19:48:13 +00:00
Kari Salminen
9a2785bc3b Partially fix automatic restarting of AGI games (Addresses bug #2798797 ('AGI: larry 1 doesn't restart after dying') but doesn't fully fix it. There seems to be more to the problem still. Automatic restarting after dying of an STD doesn't take away the STD-condition and Larry continues to die in a loop).
svn-id: r42482
2009-07-14 15:02:17 +00:00
Eugene Sandulenko
8bcdd8d7f6 Run AGIMOUSE hack as a side effect always
svn-id: r41536
2009-06-15 07:06:52 +00:00
Eugene Sandulenko
0057d9b9b2 Add guard check to set.key opcode.
svn-id: r41260
2009-06-06 17:48:30 +00:00
Eugene Sandulenko
ea3373708c Correct implementation for set.key opcode. Fixes #2605104: "AGI: Manhunter, F3 hotkey dosent work", removed number of hacks
svn-id: r41259
2009-06-06 17:48:09 +00:00
Eugene Sandulenko
d6a4dbeb1d Implement fence.mouse opcode
svn-id: r41258
2009-06-06 17:47:29 +00:00
Eugene Sandulenko
8792628a46 Implement hide.mouse and show.mouse opcodes
svn-id: r41257
2009-06-06 17:46:55 +00:00
Eugene Sandulenko
9ff714a2db Implement allow.menu opcode
svn-id: r41256
2009-06-06 17:46:38 +00:00
Eugene Sandulenko
c393144b19 Implement hold.key and release.key opcodes
svn-id: r41255
2009-06-06 17:46:19 +00:00
Eugene Sandulenko
1a321a2064 Cleanup
svn-id: r41254
2009-06-06 17:45:52 +00:00
Eugene Sandulenko
2113060c43 Implement cancel.line. Consider obj.status.f implemented
svn-id: r41253
2009-06-06 17:45:06 +00:00
Eugene Sandulenko
ed797c0709 Implement debug commands "room" and "bt"
svn-id: r41249
2009-06-06 17:43:26 +00:00
Eugene Sandulenko
a5d762c029 Fix bug #1745954: "GR: Intro "jumpy" in parts (Amiga version)"
svn-id: r41244
2009-06-06 17:41:29 +00:00
Eugene Sandulenko
26d8b2bb72 Fix bug #2721940: "AGI: Gold Rush! Restart Option differs from original"
svn-id: r41243
2009-06-06 17:40:56 +00:00
Eugene Sandulenko
a7049e5b3d Fix implementation of prevent.input. This fixes SQ2 intro
svn-id: r41241
2009-06-06 17:40:09 +00:00
Eugene Sandulenko
93d62da652 Whitespace fixes and C++ comments
svn-id: r41239
2009-06-06 17:39:13 +00:00
Filippos Karapetis
0015657caa Fix for bug #2541237 - "AGI: Restart quits ScummVM"
svn-id: r36279
2009-02-12 15:13:52 +00:00
Eugene Sandulenko
c31a0f7089 Fix bug #1942471: "AGI: Fan(Get Outta SQ): No Word wrapping"
svn-id: r35767
2009-01-07 13:27:58 +00:00
Torbjörn Andersson
9a9c1a40d9 Added a few more shouldQuit() checks. It's now possible to quit while, for
instance, Leisure Suit Larry is waiting for you to enter your age.

svn-id: r35761
2009-01-06 23:29:58 +00:00
Max Horn
9b160804ab Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
svn-id: r34700
2008-09-30 12:27:38 +00:00
Christopher Page
30b1a62e81 Removed unnecessary #inlcudes
svn-id: r32984
2008-07-10 05:15:19 +00:00
Christopher Page
e808cdf7a0 Reimplemented pushEvent() and artificialEventQueue to work with Events instead of EventTypes. Reimplemented Queue as a List instead of Array. Updated AGOS, AGI, CINE, GOB, and KYRA to work with the current implementation of the GMM
svn-id: r32971
2008-07-09 02:27:05 +00:00
Christopher Page
61d25a912e Agi works with the new GMM implementation
svn-id: r32953
2008-07-07 23:24:12 +00:00
Christopher Page
f878820bbe Created Global Main Menu Dialog. Made a uniform _quit flag for engines. So far agi, agos, and cine are now using the new _quit flag.
svn-id: r32770
2008-06-24 21:15:30 +00:00
Filippos Karapetis
0de56ea1f9 Fix for original game bug #1942476 - "AGI: Fan(Get Outta SQ) - Score is lost on restart"
svn-id: r31776
2008-04-29 16:24:54 +00:00
Filippos Karapetis
e2fe69ff71 Show current text prompt when the accept_input opcode is called. This, together with commit #31477 fix bugs #1875076 - "AGI GR: Input prompt not changing in outhouse" and #1939632 - "SQ2: Text prompt glitch"
svn-id: r31485
2008-04-11 17:00:29 +00:00
Filippos Karapetis
58b78bae07 Initial attempt at handling non-default AGI game input prompt
svn-id: r31477
2008-04-10 21:58:59 +00:00
Filippos Karapetis
08f7059cf2 Fixed an off-by one error in the AGI set_menu opcode. Fixes bug #1935896 - "AGI: Fan(Beyond Titanic 2) - Assertion"
svn-id: r31457
2008-04-09 11:25:23 +00:00
Filippos Karapetis
9a0825cc06 Added a sanity check for original game script bugs in Agent06. Fixes bugs #1935842 - "AGI: Fan(Agent06) - Graphic errors" and #1935838 - "AGI: Fan(Agent06) - Crash on Quit"
svn-id: r31449
2008-04-08 08:54:05 +00:00
Kari Salminen
af4d740757 Fully fix bug #1660424 (KQ4: Zombie bug). The bug also affected room 18 in addition to the room 16 that was already taken care of in revision 30482.
svn-id: r30631
2008-01-25 12:32:38 +00:00
Kari Salminen
f7a05a6d20 Fixed typo in comment.
svn-id: r30614
2008-01-22 19:45:06 +00:00
Kari Salminen
8d1dd18bda Implements 2 arguments version of the adj.ego.move.to.x.y-command. Should fix bug #1733297 (GR: Actor stuck (Amiga version)). Savegames when using adj.ego.move.to.x.y-command may be broken at the moment.
svn-id: r30602
2008-01-21 21:09:42 +00:00