Turn disabled asserts into warning log messages.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1755 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2007-05-29 17:53:33 +00:00
parent dffa00c7bc
commit 898afb4920
1 changed files with 3 additions and 3 deletions

View File

@ -2055,7 +2055,7 @@ void researchResult(UDWORD researchIndex, UBYTE player, BOOL bDisplay)
} }
#endif #endif
#ifdef DEBUG_SOME_OTHER_TIME #ifdef DEBUG
/*this just checks that there are not more than 32 weapons now available for /*this just checks that there are not more than 32 weapons now available for
the design screen - it'll give us grief in the design screen (which we may HAVE TO fix)!*/ the design screen - it'll give us grief in the design screen (which we may HAVE TO fix)!*/
//only check if selectedPlayer has done the research //only check if selectedPlayer has done the research
@ -2079,13 +2079,13 @@ void researchResult(UDWORD researchIndex, UBYTE player, BOOL bDisplay)
} }
if (compInc >= 32) if (compInc >= 32)
{ {
ASSERT( FALSE, "researchResult - more than 32 weapons now available" ); debug(LOG_ERROR, "researchResult - more than 32 weapons now available");
//don't bother checking any more //don't bother checking any more
break; break;
} }
if (vtolCompInc >= 32) if (vtolCompInc >= 32)
{ {
ASSERT( FALSE, "researchResult - more than 32 vtol weapons now available" ); debug(LOG_ERROR, "researchResult - more than 32 vtol weapons now available");
//don't bother checking any more //don't bother checking any more
break; break;
} }