============ Q3_SetLocation Description : Return type : qboolean Argument : int entID Argument : const char *location ============ */
| 6595 | ============ |
| 6596 | */ |
| 6597 | static qboolean Q3_SetLocation( int entID, const char *location ) |
| 6598 | { |
| 6599 | gentity_t *ent = &g_entities[entID]; |
| 6600 | char *currentLoc; |
| 6601 | |
| 6602 | if ( !ent ) |
| 6603 | { |
| 6604 | return qtrue; |
| 6605 | } |
| 6606 | |
| 6607 | currentLoc = G_GetLocationForEnt( ent ); |
| 6608 | if ( currentLoc && currentLoc[0] && Q_stricmp( location, currentLoc ) == 0 ) |
| 6609 | { |
| 6610 | return qtrue; |
| 6611 | } |
| 6612 | |
| 6613 | ent->message = G_NewString( location ); |
| 6614 | return qfalse; |
| 6615 | } |
| 6616 | |
| 6617 | /* |
| 6618 | ============ |
no test coverage detected