Skip to content

Commit

Permalink
Feb 2021 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
APGRoboCop committed Feb 20, 2021
1 parent 8f7f348 commit 193d914
Show file tree
Hide file tree
Showing 16 changed files with 208 additions and 206 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ Release/jk-botti.tlog/jk-botti.lastbuildstate
Release/jk-botti.tlog/unsuccessfulbuild
Release/safe_snprintf.obj
Release/vc142.pdb
.vs/jk-botti/v16/ipch/AutoPCH/452fab92dc351b9f/BOT_WEAPONS.ipch
*.ipch
.vs/jk-botti/v16/Browse.VC.db-wal
.vs/jk-botti/v16/Browse.VC.db-shm
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ else
endif

TARGET = jk_botti_mm
BASEFLAGS = -Wall -Wno-write-strings -Wno-aggressive-loop-optimizations
ARCHFLAG += -march=i686 -mtune=generic -msse -msse2 -mmmx -s -pipe -mfpmath=sse
BASEFLAGS = -Wall -Wno-write-strings
ARCHFLAG += -march=i686 -mtune=generic -msse -msse2 -mmmx -pipe -mfpmath=sse

ifeq ($(DBG_FLGS),1)
OPTFLAGS = -O0 -g
Expand Down
8 changes: 3 additions & 5 deletions bot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//

#ifndef _WIN32
#include <string.h>
#include <cstring>
#endif

#include <malloc.h>
Expand Down Expand Up @@ -439,8 +439,7 @@ char * GetSpecificTeam(char * teamstr, size_t slen, qboolean get_smallest, qbool
{
count++;
}
}

}

if(get_smallest)
{
Expand Down Expand Up @@ -571,7 +570,6 @@ static void RecountTeams(void)
}
}


//
void BotCheckTeamplay(void)
{
Expand Down Expand Up @@ -2916,7 +2914,7 @@ void BotThink( bot_t &pBot )
f_strafe_speed = calc.x;
pBot.f_move_speed = calc.y;

if(0)
if(false)
{
Vector v_angle = pEdict->v.v_angle;
v_angle.x = 0;
Expand Down
2 changes: 1 addition & 1 deletion bot.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef BOT_H
#define BOT_H

#include <ctype.h>
#include <cctype>
#include "safe_snprintf.h"

// Manual branch optimization for GCC 3.0.0 and newer
Expand Down
2 changes: 1 addition & 1 deletion bot_inline_funcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef BOT_INLINE_FUNCS
#define BOT_INLINE_FUNCS

#include <inttypes.h>
#include <cinttypes>
#include <sys/time.h>

// Manual branch optimization for GCC 3.0.0 and newer
Expand Down
2 changes: 1 addition & 1 deletion bot_query_hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#endif

#include <malloc.h>
#include <stdlib.h>
#include <cstdlib>
#include <memory.h>

#include <extdll.h>
Expand Down
6 changes: 3 additions & 3 deletions bot_query_hook_win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

#ifdef _WIN32

#include <string.h>
#include <cstring>

#include <memory.h>
#include <string.h>
#include <stdio.h>
#include <cstring>
#include <cstdio>

#include <winsock2.h>
#include <windows.h>
Expand Down
2 changes: 1 addition & 1 deletion bot_weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//

#ifndef _WIN32
#include <string.h>
#include <cstring>
#endif

#include <extdll.h>
Expand Down
4 changes: 2 additions & 2 deletions commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//

#ifndef _WIN32
#include <string.h>
#include <cstring>
#endif

#include <extdll.h>
Expand All @@ -14,7 +14,7 @@
#include <meta_api.h>
#include <entity_state.h>
#include <pm_defs.h>
#include <time.h>
#include <ctime>

#include "bot.h"
#include "bot_func.h"
Expand Down
4 changes: 2 additions & 2 deletions dll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//

#ifndef _WIN32
#include <string.h>
#include <cstring>
#endif

#include <malloc.h>
Expand All @@ -16,7 +16,7 @@
#include <meta_api.h>
#include <entity_state.h>
#include <pm_defs.h>
#include <time.h>
#include <ctime>

#include "bot.h"
#include "bot_func.h"
Expand Down
2 changes: 1 addition & 1 deletion engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//

#ifndef _WIN32
#include <string.h>
#include <cstring>
#endif

#include <extdll.h>
Expand Down
2 changes: 1 addition & 1 deletion h_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//

#ifndef _WIN32
#include <string.h>
#include <cstring>
#endif

#include <extdll.h>
Expand Down
Loading

0 comments on commit 193d914

Please sign in to comment.