summaryrefslogtreecommitdiff
path: root/src-07_allow-hacker-laptop.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src-07_allow-hacker-laptop.patch')
-rw-r--r--src-07_allow-hacker-laptop.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/src-07_allow-hacker-laptop.patch b/src-07_allow-hacker-laptop.patch
new file mode 100644
index 0000000..e609004
--- /dev/null
+++ b/src-07_allow-hacker-laptop.patch
@@ -0,0 +1,29 @@
+--- a/src/game.cpp
++++ b/src/game.cpp
+@@ -250,6 +250,7 @@
+ static const itype_id itype_battery( "battery" );
+ static const itype_id itype_disassembly( "disassembly" );
+ static const itype_id itype_grapnel( "grapnel" );
++static const itype_id itype_hackerlaptop( "hacker_laptop" );
+ static const itype_id itype_manhole_cover( "manhole_cover" );
+ static const itype_id itype_remotevehcontrol( "remotevehcontrol" );
+ static const itype_id itype_rope_30( "rope_30" );
+@@ -2474,7 +2475,8 @@
+ remoteveh_cache_time = calendar::turn;
+ std::stringstream remote_veh_string( u.get_value( "remote_controlling_vehicle" ) );
+ if( remote_veh_string.str().empty() ||
+- ( !u.has_active_bionic( bio_remote ) && !u.has_active_item( itype_remotevehcontrol ) ) ) {
++ + ( !u.has_active_bionic( bio_remote ) && !u.has_active_item( itype_remotevehcontrol )
++ && !u.has_active_item( itype_hackerlaptop ) ) ) {
+ remoteveh_cache = nullptr;
+ } else {
+ tripoint vp;
+@@ -2494,7 +2496,7 @@
+ remoteveh_cache_time = calendar::turn;
+ remoteveh_cache = veh;
+ if( veh != nullptr && !u.has_active_bionic( bio_remote ) &&
+- !u.has_active_item( itype_remotevehcontrol ) ) {
++ !u.has_active_item( itype_remotevehcontrol ) && !u.has_active_item( itype_hackerlaptop ) ) {
+ debugmsg( "Tried to set remote vehicle without bio_remote or remotevehcontrol" );
+ veh = nullptr;
+ }