mirror of
https://github.com/yquake2/xatrix.git
synced 2025-02-23 04:11:28 +00:00
Fix a typo in a function prototype in game.h
This is a merge of 909e694 from baseq2, original written by svdijk.
This commit is contained in:
parent
a8ba7b0bb1
commit
a7e3e4b445
2 changed files with 15 additions and 2 deletions
|
@ -220,7 +220,7 @@ typedef struct
|
||||||
int max_edicts;
|
int max_edicts;
|
||||||
} game_export_t;
|
} game_export_t;
|
||||||
|
|
||||||
game_export_t *GetGameApi(game_import_t *import);
|
game_export_t *GetGameAPI(game_import_t *import);
|
||||||
|
|
||||||
#endif /* XATRIX_GAME_H */
|
#endif /* XATRIX_GAME_H */
|
||||||
|
|
||||||
|
|
|
@ -1053,6 +1053,7 @@ SelectSpawnPoint(edict_t *ent, vec3_t origin, vec3_t angles)
|
||||||
{
|
{
|
||||||
edict_t *spot = NULL;
|
edict_t *spot = NULL;
|
||||||
edict_t *coopspot = NULL;
|
edict_t *coopspot = NULL;
|
||||||
|
int dist;
|
||||||
int index;
|
int index;
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
vec3_t d;
|
vec3_t d;
|
||||||
|
@ -1129,7 +1130,19 @@ SelectSpawnPoint(edict_t *ent, vec3_t origin, vec3_t angles)
|
||||||
|
|
||||||
VectorSubtract(coopspot->s.origin, spot->s.origin, d);
|
VectorSubtract(coopspot->s.origin, spot->s.origin, d);
|
||||||
|
|
||||||
if ((VectorLength(d) < 550))
|
/* In xship the coop spawnpoints are farther
|
||||||
|
away than in other maps. Quirk around this.
|
||||||
|
Oh well... */
|
||||||
|
if (Q_stricmp(level.mapname, "xship") == 0)
|
||||||
|
{
|
||||||
|
dist = 2500;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dist = 550;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((VectorLength(d) < dist))
|
||||||
{
|
{
|
||||||
if (index == counter)
|
if (index == counter)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue