Browse Source

Fixed the bug when using internet at someone else's place

Internet time got messed up if the internet was used at Artem/Anushka/Shulga or the summer home.
Netuttki 3 years ago
parent
commit
01129f8b98
1 changed files with 6 additions and 6 deletions
  1. 6 6
      locations/Komp.qsrc

+ 6 - 6
locations/Komp.qsrc

@@ -22,6 +22,7 @@ if $ARGS[0] = 'start':
 		internet = 100000
 		act 'Browse the internet':gt 'komp', 'brows'
 	elseif $loc = 'dachain':
+		internet_store = internet
 		internet = 0
 	else	
 		'You have <<internet>> hours of prepaid internet access remaining.'
@@ -29,10 +30,6 @@ if $ARGS[0] = 'start':
 	end
 
 	act 'Shut your computer down': 
-		if $loc = 'shulga_room' or $loc = 'anushapt' or $loc = 'artemhome':
-			internet = internet_store
-			killvar 'internet_store'
-		end
 		gt 'komp', 'fin'
 	end
 end
@@ -42,7 +39,7 @@ if $ARGS[0] = 'brows':
 	gs 'stat'
 	
 	act 'Close the browser':
-		if $loc = 'shulga_room' or $loc = 'anushapt':
+		if $loc = 'shulga_room' or $loc = 'anushapt' or $loc = 'artemhome' or $loc = 'dachain':
 			internet = internet_store
 			killvar 'internet_store'
 		end
@@ -1851,7 +1848,10 @@ if $ARGS[0] = 'hotornot':
 end
 
 if $ARGS[0] = 'fin': 
-	if $loc = 'shulga_room' or $loc = 'anushapt' or $loc = 'dachain': internet = internetS
+	if $loc = 'shulga_room' or $loc = 'anushapt' or $loc = 'dachain': 
+		internet = internet_store
+		killvar 'internet_store'
+	end
 	gt $loc, $loc_arg
 end