Skip to content

Commit

Permalink
Change default 'Use' key to E
Browse files Browse the repository at this point in the history
Fixes #226
  • Loading branch information
rafalh committed Feb 27, 2024
1 parent 646385a commit 85f30e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Version 1.8.1 (not released yet)
- Don't copy over the changelog during setup
- Add `gamma` command
- Fix holes in driller cockpit on a widescreen display
- Change default 'Use' key to E

Version 1.8.0 (released 2022-09-17)
-----------------------------------
Expand Down
4 changes: 4 additions & 0 deletions game_patch/misc/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "../rf/bmpman.h"
#include "../rf/weapon.h"
#include "../rf/hud.h"
#include "../rf/input.h"
#include "../os/console.h"
#include "../main/main.h"
#include "../multi/multi.h"
Expand Down Expand Up @@ -331,6 +332,9 @@ void player_do_patch()
// Stretch driller cockpit when using a wide-screen
player_cockpit_vmesh_render_hook.install();

// Change default 'Use' key to E
write_mem<u8>(0x0043D0A3 + 1, rf::KEY_E);

// Commands
damage_screen_flash_cmd.register_cmd();
}

0 comments on commit 85f30e0

Please sign in to comment.