Mititage startspot spawn-issues.
This commit is contained in:
parent
aa6b541313
commit
b70b0cd6f9
6 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue