From 97fd76617900f24b75b6ea3edaa311827af778d8 Mon Sep 17 00:00:00 2001 From: Taylor Richards Date: Sun, 4 Jul 2004 11:40:26 +0000 Subject: [PATCH] only load those background bitmaps that we are going to use this mission --- src/starfield/starfield.cpp | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/starfield/starfield.cpp b/src/starfield/starfield.cpp index 47933ac..729821a 100644 --- a/src/starfield/starfield.cpp +++ b/src/starfield/starfield.cpp @@ -16,6 +16,9 @@ * debris, etc. * * $Log$ + * Revision 1.8 2004/07/04 11:40:26 taylor + * only load those background bitmaps that we are going to use this mission + * * Revision 1.7 2003/05/25 02:30:44 taylor * Freespace 1 support * @@ -1366,13 +1369,18 @@ void stars_page_in() bm_page_in_xparent_texture(Subspace_glow_bitmap); // page in starfield bitmaps - int idx; + int idx, t; idx = 0; while((idx < MAX_STARFIELD_BITMAPS) && (Starfield_bitmaps[idx].bitmap != -1)){ - if(Starfield_bitmaps[idx].xparent){ - bm_page_in_xparent_texture(Starfield_bitmaps[idx].bitmap); - } else { - bm_page_in_texture(Starfield_bitmaps[idx].bitmap); + // make sure it's used in this mission before loading + for (t=0; t