Sfoglia il codice sorgente

[fixed] blank screen after entering the wardrobe and selecting "saved outfits". Removed trailing spaces

anjuna krokus 5 mesi fa
parent
commit
4459e24e80
1 ha cambiato i file con 11 aggiunte e 10 eliminazioni
  1. 11 10
      locations/wardrobe.qsrc

+ 11 - 10
locations/wardrobe.qsrc

@@ -49,6 +49,7 @@ end
 
 
 if $ARGS[0] = 'main':
+	if $wloc = '': $wloc = 'default1'
 	PShoQuality = ShoQuality
 	PShoHeels = ShoHeels
 	PShoCut = ShoCut
@@ -87,7 +88,7 @@ if $ARGS[0] = 'main':
 		*p '<TH>Bodysuit worn</TH><TH>Outfit worn</TH><TH>Coat (only worn outside when cold)</TH>'
 		*P '<TR><TD ROWSPAN=4><center><a href="exec:gt ''wardrobe'', ''underwear_options'', ''full''"><img Height = <<ward_img_hgt>>*2 src="<<FUNC(''$body_image'',''bodysuit'')>>"></a></center></TD><TD><center><a href="exec:gt ''clothing_QV'', ''list''"><img Height = <<ward_img_hgt * 2>> src="<<FUNC(''$body_image'',''clothes'')>>"></a></center></TD><TD><center>'
 	end
-		
+
 	if $coatworntype = 'none':
 		'<a href="exec:gt ''coats'', ''view_coat_list'', ''wardrobe''">Search the wardrobe</a>'
 	else
@@ -129,7 +130,7 @@ if $ARGS[0] = 'main':
 	else
 		'<a href="exec:gt ''purses'', ''view_purse_list'',''wardrobe''">Search the wardrobe</a>'
 	end
-	
+
 	if underwear['type'] = 0:
 		'</center></TD><TR><TD><center>'
 		if $pantyworntype ! 'none':
@@ -163,7 +164,7 @@ if $ARGS[0] = 'main':
 	*nl
 	'<center><font color="grey">Save/load outfits with "Managed saved clothing sets".</font></center>'
 	'<TD></center></TD></table></center>'
-	
+
 	act 'Close wardrobe': gt $loc, $loc_arg
 
 	act 'Strip all clothing':
@@ -233,7 +234,7 @@ $default_clothing_line = {
 	$RESULT = '<TR bgcolor='+$temp_bcolor+'>'
 
 	$RESULT +='<TD><b><<$def_clothing_name[default_entry]>></b></TD>'
-	
+
 	if defclothingnumber[default_entry] = 0:
 		$RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
 	else
@@ -352,7 +353,7 @@ end
 
 if $ARGS[0] = 'default_actions':
 	act 'Return': gt $loc, $loc_arg
- 
+
 	act 'Select outfit to wear':
 		cla
 		act 'Return': gt 'wardrobe', $wardrobeDefaultPagePref
@@ -878,10 +879,10 @@ if $ARGS[0] = 'default_entry_delete':
 	$defcoattype[i] = ''
 	defcoatnumber[i] = ''
 	$def_clothing_name[i] = ''
-	if default_sport_number = i: 
+	if default_sport_number = i:
 		default_sport_number = 0
 	end
-	if default_school_number = i: 
+	if default_school_number = i:
 		default_school_number = 0
 	end
 	gt 'wardrobe', $wloc
@@ -901,7 +902,7 @@ end
 
 if $ARGS[0] = 'school_outfit':
 	! if no outfit set in wardrobe they use the default
-	if default_school_number = 0:	
+	if default_school_number = 0:
 		gs 'clothing', 'wear', 'gm_school', 6
 		gs 'panties', 'wear', $lastwornpantytype['bed'], lastwornpantynumber['bed']
 		gs 'bras', 'wear', $lastwornbratype['bed'], lastwornbranumber['bed']
@@ -935,7 +936,7 @@ if $ARGS[0] = 'default_clothing_options':
 			elseif default_sport_number[2] ! 5:
 				act 'Put on your sports clothes':
 					if func('prostitution_functions', 'is_default') ! 0: gs 'wardrobe', 'back_to_regular_clothes'
-					
+
 					$lastwornclothingtype['sport'] = $clothingworntype
 					lastwornclothingnumber['sport'] = clothingwornnumber
 					lastwornunderwear['sport'] = 0
@@ -978,7 +979,7 @@ end
 
 if $ARGS[0] = 'default_school_wear':
 	if func('prostitution_functions', 'is_default') ! 0: gs 'wardrobe', 'back_to_regular_clothes'
-	
+
 	$lastwornclothingtype['school'] = $clothingworntype
 	lastwornclothingnumber['school'] = clothingwornnumber
 	lastwornunderwear['school'] = 0