Changes big tabs to smaller tabs when you have many maps.
(It would crash after showing 4 'pages') NOTE, if we have *lots* of maps (more than 7 pages), added ASSERT, so we will know we need to port over the scroll tab modifications to this routine as well. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6735 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
f4fb5a269b
commit
19852d694c
|
@ -454,7 +454,9 @@ void addMultiRequest(const char* searchDir, const char* fileExtension, UDWORD mo
|
|||
// this will need to change.
|
||||
if (sFormInit.numMajor > MAX_TAB_STD_SHOWN)
|
||||
{
|
||||
sFormInit.numMajor = MAX_TAB_STD_SHOWN;
|
||||
ASSERT(sFormInit.numMajor < MAX_TAB_SMALL_SHOWN,"Too many maps! Need scroll tabs here.");
|
||||
sFormInit.pUserData = &SmallTab;
|
||||
sFormInit.majorSize /= 2;
|
||||
}
|
||||
|
||||
for (i = 0; i < sFormInit.numMajor; ++i)
|
||||
|
|
Loading…
Reference in New Issue