REFACTOR
From /dev/humancontroller.
This commit is contained in:
parent
997615168a
commit
7f9a04fd80
6 changed files with 5 additions and 6 deletions
|
@ -2301,7 +2301,6 @@ int BotWantsToRetreat(bot_state_t *bs) {
|
|||
#endif
|
||||
//
|
||||
if (bs->enemy >= 0) {
|
||||
//if the enemy is carrying a flag
|
||||
BotEntityInfo(bs->enemy, &entinfo);
|
||||
// if the enemy is carrying a flag
|
||||
if (EntityCarriesFlag(&entinfo)) return qfalse;
|
||||
|
|
|
@ -485,7 +485,7 @@ char *G_AddSpawnVarToken( const char *string ) {
|
|||
|
||||
l = strlen( string );
|
||||
if ( level.numSpawnVarChars + l + 1 > MAX_SPAWN_VARS_CHARS ) {
|
||||
G_Error( "G_AddSpawnVarToken: MAX_SPAWN_VARS" );
|
||||
G_Error( "G_AddSpawnVarToken: MAX_SPAWN_VARS_CHARS" );
|
||||
}
|
||||
|
||||
dest = level.spawnVarChars + level.numSpawnVarChars;
|
||||
|
|
|
@ -48,6 +48,7 @@ void trap_Printf( const char *fmt ) {
|
|||
void trap_Error(const char *fmt)
|
||||
{
|
||||
syscall(G_ERROR, fmt);
|
||||
// shut up GCC warning about returning functions, because we know better
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -227,7 +228,6 @@ int trap_RealTime( qtime_t *qtime ) {
|
|||
|
||||
void trap_SnapVector( float *v ) {
|
||||
syscall( G_SNAPVECTOR, v );
|
||||
return;
|
||||
}
|
||||
|
||||
// BotLib traps start here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue