summaryrefslogtreecommitdiff
path: root/jc_allow-hacker-laptop.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2021-06-05 01:49:15 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2021-06-05 01:49:15 -0700
commitfc8c5c05605c092e6b44c01e62425d786addbe16 (patch)
treeab6af4e0934114d7d97aff8132653ebdcc9679a4 /jc_allow-hacker-laptop.patch
parentUpdated to 1918 (diff)
downloadcataclysm-bn-fc8c5c05605c092e6b44c01e62425d786addbe16.tar.xz
Updated to 1999
Add patch to remove 4.6mm ammo from police drops Add patch for initial hacker laptop support
Diffstat (limited to 'jc_allow-hacker-laptop.patch')
-rw-r--r--jc_allow-hacker-laptop.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/jc_allow-hacker-laptop.patch b/jc_allow-hacker-laptop.patch
new file mode 100644
index 0000000..69ca8b2
--- /dev/null
+++ b/jc_allow-hacker-laptop.patch
@@ -0,0 +1,21 @@
+--- a/src/game.cpp
++++ b/src/game.cpp
+@@ -2432,7 +2432,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( "remotevehcontrol" ) ) ) {
++ ( !u.has_active_bionic( bio_remote ) && !u.has_active_item( "remotevehcontrol" )
++ && !u.has_active_item( "hacker_laptop" ) ) ) {
+ remoteveh_cache = nullptr;
+ } else {
+ tripoint vp;
+@@ -2452,7 +2453,7 @@
+ remoteveh_cache_time = calendar::turn;
+ remoteveh_cache = veh;
+ if( veh != nullptr && !u.has_active_bionic( bio_remote ) &&
+- !u.has_active_item( "remotevehcontrol" ) ) {
++ !u.has_active_item( "remotevehcontrol" ) && !u.has_active_item( "hacker_laptop" ) ) {
+ debugmsg( "Tried to set remote vehicle without bio_remote or remotevehcontrol" );
+ veh = nullptr;
+ }