Skip to content

Commit

Permalink
Added Zaero expansion to XCode workspace.
Browse files Browse the repository at this point in the history
  • Loading branch information
kondrak committed Dec 12, 2019
1 parent 916fc2b commit 46357f1
Show file tree
Hide file tree
Showing 19 changed files with 761 additions and 50 deletions.
3 changes: 3 additions & 0 deletions macos/vkQuake2.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,27 @@
ReferencedContainer = "container:../xatrix/macos/xatrix.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E295520021F618E100336DD3"
BuildableName = "zaero.dylib"
BlueprintName = "zaero"
ReferencedContainer = "container:../zaero/macos/zaero.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
Expand All @@ -108,8 +120,8 @@
ReferencedContainer = "container:quake2.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand Down Expand Up @@ -144,8 +156,6 @@
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
4 changes: 2 additions & 2 deletions zaero/g_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ void findNext(edict_t *ent, struct altsel_s *ptr, int offset)

void altSelect(edict_t *ent, int num)
{
int index = 0;
int offset = -1;
int i = 0;
struct altsel_s *ptr = NULL;
Expand Down Expand Up @@ -485,7 +484,8 @@ void altSelect(edict_t *ent, int num)
offset = 0;
else
{
offset = ((++offset) % ptr->num);
++offset;
offset = offset % ptr->num;
}

// now select this offset
Expand Down
4 changes: 2 additions & 2 deletions zaero/g_combat.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ static int CheckPowerArmor (edict_t *ent, vec3_t point, vec3_t normal, int damag
gclient_t *client;
int save;
int power_armor_type;
int index;
int index = 0;
int damagePerCell;
int pa_te_type;
int power;
int power = 0;
int power_used;

if (!damage)
Expand Down
1 change: 0 additions & 1 deletion zaero/g_func.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,6 @@ void Use_Plat (edict_t *ent, edict_t *other, edict_t *activator)

void Touch_Plat_Center (edict_t *ent, edict_t *other, cplane_t *plane, csurface_t *surf)
{
edict_t *trigger = ent;
if (!other->client)
return;

Expand Down
10 changes: 5 additions & 5 deletions zaero/g_items.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ gitem_armor_t jacketarmor_info = { 25, 50, .30, .00, ARMOR_JACKET};
gitem_armor_t combatarmor_info = { 50, 100, .60, .30, ARMOR_COMBAT};
gitem_armor_t bodyarmor_info = {100, 200, .80, .60, ARMOR_BODY};

static int jacket_armor_index;
static int combat_armor_index;
static int body_armor_index;
static int power_screen_index;
static int power_shield_index;
int jacket_armor_index;
int combat_armor_index;
int body_armor_index;
int power_screen_index;
int power_shield_index;

#define HEALTH_IGNORE_MAX 1
#define HEALTH_TIMED 2
Expand Down
2 changes: 1 addition & 1 deletion zaero/g_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ int PowerArmorType (edict_t *ent);
gitem_t *GetItemByIndex (int index);
qboolean Add_Ammo (edict_t *ent, gitem_t *item, int count);
void Touch_Item (edict_t *ent, edict_t *other, cplane_t *plane, csurface_t *surf);
void precacheAllItems();
void precacheAllItems(void);

//
// g_utils.c
Expand Down
2 changes: 1 addition & 1 deletion zaero/g_phys.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ void SV_Physics_Toss (edict_t *ent)
qboolean wasinwater;
qboolean isinwater;
vec3_t old_origin;
float speed;
float speed = 0.f;

// regular thinking
SV_RunThink (ent);
Expand Down
2 changes: 2 additions & 0 deletions zaero/g_save.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ void WriteField2 (FILE *f, field_t *field, byte *base)
fwrite (*(char **)p, len, 1, f);
}
break;
default:
break;
}
}

Expand Down
4 changes: 3 additions & 1 deletion zaero/g_spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ void ED_ParseField (char *key, char *value, edict_t *ent)
break;
case F_IGNORE:
break;
default:
break;
}
return;
}
Expand Down Expand Up @@ -534,7 +536,7 @@ void G_FindTeams (void)
gi.dprintf ("%i teams with %i entities\n", c, c2);
}

void Z_SpawnDMItems();
void Z_SpawnDMItems(void);

/*
==============
Expand Down
2 changes: 1 addition & 1 deletion zaero/m_boss31.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jorg
#include "g_local.h"
#include "m_boss31.h"

extern SP_monster_makron (edict_t *self);
extern void SP_monster_makron (edict_t *self);
qboolean visible (edict_t *self, edict_t *other);

static int sound_pain1;
Expand Down
4 changes: 2 additions & 2 deletions zaero/m_move.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ void SV_NewChaseDir (edict_t *actor, edict_t *enemy, float dist)
}

// try other directions
if ( ((rand()&3) & 1) || abs(deltay)>abs(deltax))
if ( ((rand()&3) & 1) || fabs(deltay)>fabs(deltax))
{
tdir=d[1];
d[1]=d[2];
Expand Down Expand Up @@ -612,4 +612,4 @@ qboolean M_MoveAwayFromFlare(edict_t *self, float dist)
G_FreeEdict(goal);

return true;
}
}
Loading

0 comments on commit 46357f1

Please sign in to comment.