Skip to content

Commit a158029

Browse files
committed
When loading the mask file fails, correctly report which file we were trying to load.
1 parent 96e8d5b commit a158029

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

code/missionui/missionweaponchoice.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,13 +2010,7 @@ void weapon_select_init()
20102010

20112011
WeaponSelectMaskBitmap = bm_load(Wl_loadout_select_mask[Uses_apply_all_button][gr_screen.res]);
20122012
if (WeaponSelectMaskBitmap < 0) {
2013-
if (gr_screen.res == GR_640) {
2014-
Error(LOCATION,"Could not load in 'weaponloadout-m'!");
2015-
} else if (gr_screen.res == GR_1024) {
2016-
Error(LOCATION,"Could not load in '2_weaponloadout-m'!");
2017-
} else {
2018-
Error(LOCATION,"Could not load in 'weaponloadout-m'!");
2019-
}
2013+
Error(LOCATION,"Could not load in '%s'!", Wl_loadout_select_mask[Uses_apply_all_button][gr_screen.res]);
20202014
}
20212015

20222016
Weaponselect_mask_w = -1;

0 commit comments

Comments
 (0)