Fixed warning regarding loading the load screen texture
This commit is contained in:
		
							parent
							
								
									9b67305893
								
							
						
					
					
						commit
						81dac26e29
					
				| @ -13,8 +13,7 @@ function create() | |||||||
| 
 | 
 | ||||||
|   if rnd.int() > 0.7 then |   if rnd.int() > 0.7 then | ||||||
|     mem.bribe = math.sqrt(ai.shipmass())*(500. * rnd.int() + 1750.) |     mem.bribe = math.sqrt(ai.shipmass())*(500. * rnd.int() + 1750.) | ||||||
|     mem.bribe_prompt = string.format("\"For some %d credits I could forget \  |     mem.bribe_prompt = string.format("\"For some %d credits I could forget about seeing you.\"", mem.bribe) | ||||||
|               about seeing you.\"", mem.bribe) |  | ||||||
|     mem.bribe_paid = "\"Now, scram, before I change my mind.\"" |     mem.bribe_paid = "\"Now, scram, before I change my mind.\"" | ||||||
|   else |   else | ||||||
|     if rnd.int() > 0.5 then |     if rnd.int() > 0.5 then | ||||||
|  | |||||||
| @ -12,7 +12,7 @@ function create() | |||||||
| 
 | 
 | ||||||
|   -- Deal with bribeability. |   -- Deal with bribeability. | ||||||
|   if rnd.int() < 0.05 then |   if rnd.int() < 0.05 then | ||||||
|     mem.bribe_no = = "\"You won't be able to slide out of this one!\"" |     mem.bribe_no = "\"You won't be able to slide out of this one!\"" | ||||||
|   else |   else | ||||||
|     mem.bribe = math.sqrt(ai.shipmass()) * (300. * rnd.int() + 850.) |     mem.bribe = math.sqrt(ai.shipmass()) * (300. * rnd.int() + 850.) | ||||||
|     if rnd.int() > 0.5 then |     if rnd.int() > 0.5 then | ||||||
|  | |||||||
| @ -305,7 +305,7 @@ void loadscreen_load(void) { | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   /* Load the texture. */ |   /* Load the texture. */ | ||||||
|   snprintf(file_path, PATH_MAX, loadscreens[RNG(0, nload-1)]); |   strncpy(file_path, loadscreens[RNG(0, nload-1)], PATH_MAX); | ||||||
|   loading = gl_newImage(file_path); |   loading = gl_newImage(file_path); | ||||||
| 
 | 
 | ||||||
|   /* Clean up. */ |   /* Clean up. */ | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Allanis
						Allanis