Opened 18 years ago

Closed 18 years ago

Last modified 6 years ago

#8641 closed patch

Fix for #1671426: MH2 : Doesn't recognize Enter for actions

Reported by: bluegr Owned by: sev-
Priority: normal Component: Engine: AGI
Version: Keywords:
Cc: Game: Manhunter 2

Description

This is an attempt to fix bug #1671426: "MH2 : Doesn't recognize Enter for actions". I've observed that in MH1 and MH2, you can use the Space key to do actions and bypass videos (the "action key").

The original interpreter accepts either Space or the Enter key as the default action key. MH1 and MH2 differ from the rest of the AGI games in that they don't have text input and that the text input in them is (always?) set to INPUT_NONE (i.e. no text input).

With this patch, I'm changing the behavior of the Enter key to be the same as the Space key (like in the original interpreter) in MH1 and MH2, when the game input mode is set to INPUT_NONE (which is almost always in these two games). The Enter key works normally in the menus (e.g. when selecting a menu option, when saving a game etc).

This behaves exactly like the original interpreter

This patch already includes patch #1704575 (as they both change the same files)

Ticket imported from: #1704914. Ticket imported from: patches/746.

Attachments (2)

fix_mh1_mh2.patch (2.9 KB ) - added by bluegr 18 years ago.
Manhunter 1 and 2 Enter key fix
mh_inv_fix.patch (860 bytes ) - added by bluegr 18 years ago.
Fixes the Enter key in MH inventory screens

Download all attachments as: .zip

Change History (7)

by bluegr, 18 years ago

Attachment: fix_mh1_mh2.patch added

Manhunter 1 and 2 Enter key fix

comment:1 by sev-, 18 years ago

Owner: set to sev-

comment:2 by sev-, 18 years ago

Status: newclosed

comment:3 by sev-, 18 years ago

This combined patch forced me to do manual patching. I hope I did not miss anything.

Please, pay attention to our code formatting guidelines (you had extra spaces around parens).

Otherwise the patch looks great and committed. Thank you.

by bluegr, 18 years ago

Attachment: mh_inv_fix.patch added

Fixes the Enter key in MH inventory screens

comment:4 by bluegr, 18 years ago

Made a mistake, which causes the Enter key to be non-functional in the inventory screen of MH1 and MH2

Attaching a patch on the latest SVN, which fixes the Enter key in the inventory screen File Added: mh_inv_fix.patch

comment:5 by digitall, 6 years ago

Component: Engine: AGI
Game: Manhunter 2
Note: See TracTickets for help on using tickets.