}
}
-bool spawnAllowed(entity this)
+bool joinAllowed(entity this)
{
if (this.version_mismatch) return false;
if (!nJoinAllowed(this, this)) return false;
}
if (this.flags & FL_JUMPRELEASED) {
- if (PHYS_INPUT_BUTTON_JUMP(this) && spawnAllowed(this)) {
+ if (PHYS_INPUT_BUTTON_JUMP(this) && joinAllowed(this)) {
this.flags &= ~FL_JUMPRELEASED;
this.flags |= FL_SPAWNING;
} else if(PHYS_INPUT_BUTTON_ATCK(this) && !this.version_mismatch) {
}
if (this.flags & FL_JUMPRELEASED) {
- if (PHYS_INPUT_BUTTON_JUMP(this) && spawnAllowed(this)) {
+ if (PHYS_INPUT_BUTTON_JUMP(this) && joinAllowed(this)) {
this.flags &= ~FL_JUMPRELEASED;
this.flags |= FL_SPAWNING;
} else if(PHYS_INPUT_BUTTON_ATCK(this) || this.impulse == 10 || this.impulse == 15 || this.impulse == 18 || (this.impulse >= 200 && this.impulse <= 209)) {
}
}
-bool spawnAllowed(entity this);
+bool joinAllowed(entity this);
void Join(entity this);
void ClientCommand_join(entity caller, float request)
{
{
if (!gameover)
if (IS_CLIENT(caller) && !IS_PLAYER(caller))
- if (spawnAllowed(caller))
+ if (joinAllowed(caller))
Join(caller);
return; // never fall through to usage