Browse Source

[fixes] Code errors spotted by analyser

KevinSmarts 5 years ago
parent
commit
0212161068
3 changed files with 2 additions and 4 deletions
  1. 1 1
      locations/police_station.qsrc
  2. 1 1
      locations/sentence.qsrc
  3. 0 2
      locations/shoplifting.qsrc

+ 1 - 1
locations/police_station.qsrc

@@ -5,7 +5,7 @@ if $ARGS[0] = 'start':
 	'<center><img <<$set_imgh>> src="images/locations/city/citycenter/police/cityext.jpg"></center>'
 	'The St. Petersburg police station has definitely seen better days, but continues to stand the test of time. While not as large as other police stations, it still strikes fear into any criminal that passes through its doors.' 
 	act 'Return to the center': gt 'Down'
-	act 'Go to the Reception desk' gt 'police_station', 'reception'
+	act 'Go to the Reception desk': gt 'police_station', 'reception'
 end
 
 if $ARGS[0] = 'reception':

+ 1 - 1
locations/sentence.qsrc

@@ -1,7 +1,7 @@
 #sentence
 
 !if Sveta has a home, receives an envelope home from the court to appear. If possible make it trigger as Sveta enters the home
-if $ARGS[0] = 'letter'
+if $ARGS[0] = 'letter':
 	if sentencing_letter < 10:
 		sentencing_letter += 1
 		*clr & cla

+ 0 - 2
locations/shoplifting.qsrc

@@ -73,8 +73,6 @@ if $ARGS[0] = 'city':
 						act 'Get lead to the security room':gt 'shpoplifting', 'securityroom'
 					end
 				end
-			end
-
 			else
 				'You feel your hands trembling in your pockets, getting worse with every step. No matter what you do, you can''t shake the feeling that someone must''ve spotted you... surely they''ve spotted you!'
 				'You desperately try to calm yourself down with every step you get closer to the exit. No one seems to be stopping you, so far... maybe you got lucky?'