ソースを参照

[fixed] Wrong use of `arrpos` caused the camera to stop working

anjuna krokus 5 ヶ月 前
コミット
a4756c3e12
1 ファイル変更4 行追加4 行削除
  1. 4 4
      locations/camera.qsrc

+ 4 - 4
locations/camera.qsrc

@@ -127,7 +127,7 @@ if $ARGS[0] = 'start':
 	'You spend a few minutes thinking about places and people that might make for interesting subjects. Perhaps...'
 	*nl
 	! Get the number of locations in the array
-	location_count = ARRSIZE('$camera_locations')
+	location_count = arrsize('$camera_locations')
 	iterator = 0
 	! For every location
 	if location_count > 0:
@@ -140,7 +140,7 @@ if $ARGS[0] = 'start':
 		if iterator < location_count: jump 'location_loop'
 	end
 	*nl
-	people_count = ARRSIZE('$camera_people')
+	people_count = arrsize('$camera_people')
 	iterator = 0
 	! For every person in the array
 	if people_count > 0:
@@ -158,7 +158,7 @@ end
 
 if $ARGS[0] = 'check_location':
 	! If the player has a camera and this location exists in the array
-	if photographyEv >= 2 and arrpos('$camera_locations', $loc) >= 0:
+	if photographyEv >= 2 and $camera_locations[$loc] ! '':
 		! Assign the variables
 		dynamic $camera_locations[$loc]
 		! If they have not already photographed the location
@@ -181,7 +181,7 @@ end
 
 if $ARGS[0] = 'check_person':
     ! If the player has a camera and this person exists in the array
-    if photographyEv >= 2 and arrpos('$camera_people', $ARGS[1]) >= 0:
+    if photographyEv >= 2 and $camera_people[$ARGS[1]] ! '':
         ! Assign the variables
         dynamic $camera_people[$ARGS[1]]
         ! If they have not already photographed the person