Mititage startspot spawn-issues.

This commit is contained in:
Marco Cawthorne 2020-03-25 20:20:53 +01:00
parent aa6b541313
commit b70b0cd6f9
6 changed files with 8 additions and 6 deletions

View file

@ -116,7 +116,7 @@ int HUD_InSlotPos(int slot, int pos)
return -1;
}
int HUD_SlotSelect(int slot)
void HUD_SlotSelect(int slot)
{
player pl = (player)pSeat->ePlayer;
int curslot = g_weapons[pSeat->fHUDWeaponSelected].slot;

View file

@ -118,7 +118,7 @@ int HUD_InSlotPos(int slot, int pos)
return -1;
}
int HUD_SlotSelect(int slot)
void HUD_SlotSelect(int slot)
{
player pl = (player)pSeat->ePlayer;
int curslot = g_weapons[pSeat->fHUDWeaponSelected].slot;

View file

@ -110,7 +110,7 @@ int HUD_InSlotPos(int slot, int pos)
return -1;
}
int HUD_SlotSelect(int slot)
void HUD_SlotSelect(int slot)
{
player pl = (player)pSeat->ePlayer;
int curslot = g_weapons[pSeat->fHUDWeaponSelected].slot;

View file

@ -148,7 +148,9 @@ vector Landmark_GetSpot(void)
if (!landmark) {
print(sprintf("^1ERROR^7: Landmark_GetSpot: Cannot find startspot '%s'!\n",startspot));
return __NULL__;
/* return something useful? */
landmark = find(world, ::classname, "info_player_start");
return landmark.origin;
}
return landmark.origin + g_landmarkpos;

View file

@ -203,7 +203,7 @@ void Game_PutClientInServer(void)
if (cvar("sv_playerslots") == 1) {
Game_DecodeChangeParms();
if (startspot) {
if (startspot != "") {
setorigin(pl, Landmark_GetSpot());
} else {
spot = find(world, classname, "info_player_start");

View file

@ -320,7 +320,7 @@ Game_PutClientInServer(void)
if (cvar("sv_playerslots") == 1) {
Game_DecodeChangeParms();
if (startspot) {
if (startspot != "") {
setorigin(pl, Landmark_GetSpot());
} else {
spot = find(world, classname, "info_player_start");