disable gcc -fno-builtin
This commit is contained in:
parent
cf7fca3039
commit
bcf11cf6ff
6 changed files with 14 additions and 12 deletions
|
|
@ -1445,7 +1445,7 @@ void Bot::PurchaseWeapons (void)
|
|||
bool teamEcoValid = bots.IsEcoValid (m_team);
|
||||
|
||||
// do this, because xash engine is not capable to run all the features goldsrc, but we have cs 1.6 on it, so buy table must be the same
|
||||
bool isOldGame = (g_gameFlags & GAME_LEGACY) && !(g_gameFlags & GAME_XASH);
|
||||
bool isOldGame = (g_gameFlags & GAME_LEGACY) && !(g_gameFlags & GAME_XASH_ENGINE);
|
||||
|
||||
switch (m_buyState)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2419,7 +2419,7 @@ void pfnMessageBegin (int msgDest, int msgType, const float *origin, edict_t *ed
|
|||
}
|
||||
engine.ResetMessageCapture ();
|
||||
|
||||
if ((!(g_gameFlags & GAME_LEGACY) || (g_gameFlags & GAME_XASH)) && msgDest == MSG_SPEC && msgType == engine.FindMessageId (NETMSG_HLTV))
|
||||
if ((!(g_gameFlags & GAME_LEGACY) || (g_gameFlags & GAME_XASH_ENGINE)) && msgDest == MSG_SPEC && msgType == engine.FindMessageId (NETMSG_HLTV))
|
||||
engine.SetOngoingMessageId (NETMSG_HLTV);
|
||||
|
||||
engine.TryCaptureMessage (msgType, NETMSG_WEAPONLIST);
|
||||
|
|
@ -3029,7 +3029,7 @@ Library *LoadCSBinary (void)
|
|||
// detect xash engine
|
||||
if (g_engfuncs.pfnCVarGetPointer ("build") != nullptr)
|
||||
{
|
||||
g_gameFlags |= (GAME_LEGACY | GAME_XASH);
|
||||
g_gameFlags |= (GAME_LEGACY | GAME_XASH_ENGINE);
|
||||
|
||||
if (g_gameFlags & GAME_METAMOD)
|
||||
{
|
||||
|
|
@ -3088,7 +3088,7 @@ DLL_GIVEFNPTRSTODLL GiveFnptrsToDll (enginefuncs_t *functionTable, globalvars_t
|
|||
}
|
||||
|
||||
#ifdef PLATFORM_ANDROID
|
||||
g_gameFlags |= (GAME_LEGACY | GAME_XASH | GAME_MOBILITY);
|
||||
g_gameFlags |= (GAME_LEGACY | GAME_XASH_ENGINE | GAME_MOBILITY);
|
||||
|
||||
if (g_gameFlags & GAME_METAMOD)
|
||||
return; // we should stop the attempt for loading the real gamedll, since metamod handle this for us
|
||||
|
|
@ -3127,7 +3127,7 @@ DLL_GIVEFNPTRSTODLL GiveFnptrsToDll (enginefuncs_t *functionTable, globalvars_t
|
|||
else if (g_gameFlags & GAME_CSTRIKE16)
|
||||
gameVersionStr.Assign ("v1.6");
|
||||
|
||||
if (g_gameFlags & GAME_XASH)
|
||||
if (g_gameFlags & GAME_XASH_ENGINE)
|
||||
{
|
||||
gameVersionStr.Append (" @ Xash3D Engine");
|
||||
|
||||
|
|
|
|||
|
|
@ -1107,7 +1107,7 @@ bool Bot::DoWaypointNav (void)
|
|||
if (Random.Int (1, 100) < 50)
|
||||
{
|
||||
// do not use door directrly under xash, or we will get failed assert in gamedll code
|
||||
if (g_gameFlags & GAME_XASH)
|
||||
if (g_gameFlags & GAME_XASH_ENGINE)
|
||||
pev->button |= IN_USE;
|
||||
else
|
||||
MDLL_Use (tr.pHit, GetEntity ()); // also 'use' the door randomly
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ void DisplayMenuToClient (edict_t *ent, MenuId menu)
|
|||
break;
|
||||
}
|
||||
}
|
||||
const char *displayText = ((g_gameFlags & (GAME_XASH | GAME_MOBILITY)) && !yb_display_menu_text.GetBool ()) ? " " : menuPtr->text.GetBuffer ();
|
||||
const char *displayText = ((g_gameFlags & (GAME_XASH_ENGINE | GAME_MOBILITY)) && !yb_display_menu_text.GetBool ()) ? " " : menuPtr->text.GetBuffer ();
|
||||
|
||||
while (strlen (displayText) >= 64)
|
||||
{
|
||||
|
|
@ -528,7 +528,7 @@ void CheckWelcomeMessage (void)
|
|||
|
||||
Array <String> sentences;
|
||||
|
||||
if (!(g_gameFlags & (GAME_MOBILITY | GAME_XASH)))
|
||||
if (!(g_gameFlags & (GAME_MOBILITY | GAME_XASH_ENGINE)))
|
||||
{
|
||||
// add default messages
|
||||
sentences.Push ("hello user,communication is acquired");
|
||||
|
|
@ -554,7 +554,7 @@ void CheckWelcomeMessage (void)
|
|||
|
||||
if (receiveTime > 0.0f && receiveTime < engine.Time () && !alreadyReceived && (g_numWaypoints > 0 ? g_gameWelcomeSent : true))
|
||||
{
|
||||
if (!(g_gameFlags & (GAME_MOBILITY | GAME_XASH)))
|
||||
if (!(g_gameFlags & (GAME_MOBILITY | GAME_XASH_ENGINE)))
|
||||
engine.IssueCmd ("speak \"%s\"", const_cast <char *> (sentences.GetRandomElement ().GetBuffer ()));
|
||||
|
||||
engine.ChatPrintf ("----- %s v%s (Build: %u), {%s}, (c) 2016, by %s (%s)-----", PRODUCT_NAME, PRODUCT_VERSION, GenerateBuildNumber (), PRODUCT_DATE, PRODUCT_AUTHOR, PRODUCT_URL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue