summaryrefslogtreecommitdiff
path: root/jc_allow-hacker-laptop.patch
blob: 69ca8b27481a8b3920c441457475e27c1c28e45a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
     }