From c14f1b6f62fee89f942d0e88a7013d3bd9796e43 Mon Sep 17 00:00:00 2001 From: blackhc Date: Wed, 11 May 2005 20:28:25 +0000 Subject: [PATCH] -Changed Item_Nex_MapDB_EnumFiles to actually load m_nomap if no map picture is available. git-svn-id: svn://svn.icculus.org/nexuiz/trunk@400 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- scmenu/source/custom/creategame/maps.qc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scmenu/source/custom/creategame/maps.qc b/scmenu/source/custom/creategame/maps.qc index e30420010..66f57c4b8 100644 --- a/scmenu/source/custom/creategame/maps.qc +++ b/scmenu/source/custom/creategame/maps.qc @@ -102,7 +102,12 @@ void() Item_Nex_MapDB_EnumFiles = lMap = Menu_CreateItem( "Item_Nex_Map_Info", ftos( lSearchCounter ), self.name ); lMap.link = lName; - lMap.picture = lStripped; + // check the picture + if( Gfx_Precache( lStripped ) ) { + lMap.picture = lStripped; + } else { + lMap.picture = "gfx/m_nomap"; + } lMap.normal = lTitle; lMap.text = lDescription; -- 2.39.2