* Use decent assertion expressions for some asserts (e.g. !"string", so that debuggers actually display something more interesting than 'FALSE')
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1837 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
0378115e2b
commit
c5f107c36b
|
@ -2050,7 +2050,7 @@ BOOL proj_Direct(WEAPON_STATS *psStats)
|
|||
return FALSE;
|
||||
break;
|
||||
default:
|
||||
ASSERT( FALSE,"proj_Direct: unknown movement model" );
|
||||
ASSERT(!"unknown movement model", "proj_Direct: unknown movement model");
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2215,7 +2215,7 @@ BOOL objectDamage(BASE_OBJECT *psObj, UDWORD damage, UDWORD weaponClass,UDWORD w
|
|||
return featureDamage((FEATURE *)psObj, damage, weaponSubClass);
|
||||
break;
|
||||
default:
|
||||
ASSERT( FALSE, "objectDamage - unknown object type" );
|
||||
ASSERT(!"unknown object type", "objectDamage - unknown object type");
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue