Merge pull request #30 from xoddark/Werror_pointer-arith

Fix pointer-arith warning
This commit is contained in:
Timothee "TTimo" Besset
2011-12-26 06:15:39 -08:00
2 changed files with 5 additions and 5 deletions

View File

@@ -3134,7 +3134,7 @@ idActor::Event_HasAnim
================
*/
void idActor::Event_HasAnim( int channel, const char *animname ) {
if ( GetAnim( channel, animname ) != NULL ) {
if ( GetAnim( channel, animname ) ) {
idThread::ReturnFloat( 1.0f );
} else {
idThread::ReturnFloat( 0.0f );

View File

@@ -4140,7 +4140,7 @@ idPlayer::GiveVideo
*/
void idPlayer::GiveVideo( const char *videoName, idDict *item ) {
if ( videoName == NULL || *videoName == NULL ) {
if ( videoName == NULL || *videoName == '\0' ) {
return;
}
@@ -4177,7 +4177,7 @@ idPlayer::GiveEmail
*/
void idPlayer::GiveEmail( const char *emailName ) {
if ( emailName == NULL || *emailName == NULL ) {
if ( emailName == NULL || *emailName == '\0' ) {
return;
}
@@ -4204,7 +4204,7 @@ void idPlayer::GivePDA( const char *pdaName, idDict *item )
inventory.pdaSecurity.AddUnique( item->GetString( "inv_name" ) );
}
if ( pdaName == NULL || *pdaName == NULL ) {
if ( pdaName == NULL || *pdaName == '\0' ) {
pdaName = "personal";
}
@@ -6297,7 +6297,7 @@ void idPlayer::UpdatePDAInfo( bool updatePDASel ) {
const char *security = pda->GetSecurity();
if ( j == currentPDA || (currentPDA == 0 && security && *security ) ) {
if ( *security == NULL ) {
if ( *security == '\0' ) {
security = common->GetLanguageDict()->GetString( "#str_00066" );
}
objectiveSystem->SetStateString( "PDASecurityClearance", security );