Fixed warning regarding loading the load screen texture

This commit is contained in:
Allanis 2014-02-02 20:08:28 +00:00
parent 9b67305893
commit 81dac26e29
3 changed files with 3 additions and 4 deletions

View File

@ -13,8 +13,7 @@ function create()
if rnd.int() > 0.7 then
mem.bribe = math.sqrt(ai.shipmass())*(500. * rnd.int() + 1750.)
mem.bribe_prompt = string.format("\"For some %d credits I could forget \
about seeing you.\"", mem.bribe)
mem.bribe_prompt = string.format("\"For some %d credits I could forget about seeing you.\"", mem.bribe)
mem.bribe_paid = "\"Now, scram, before I change my mind.\""
else
if rnd.int() > 0.5 then

View File

@ -12,7 +12,7 @@ function create()
-- Deal with bribeability.
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
mem.bribe = math.sqrt(ai.shipmass()) * (300. * rnd.int() + 850.)
if rnd.int() > 0.5 then

View File

@ -305,7 +305,7 @@ void loadscreen_load(void) {
}
/* 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);
/* Clean up. */