engine: server: add Host_Error on unknown pfnWalkMove state

In GoldSrc default branch interpreted as WALKMOVE_NORMAL, and there might be
some mods that expect this.
But Xash never did this, and if Xash-specific games rely on that behavior, we
better know about it.
This commit is contained in:
Alibek Omarov
2026-01-16 14:19:35 +05:00
parent ed85d3028f
commit 896bbe8fc3

View File

@@ -1929,6 +1929,8 @@ static int GAME_EXPORT pfnWalkMove( edict_t *ent, float yaw, float dist, int iMo
return SV_MoveTest( ent, move, true );
case WALKMOVE_CHECKONLY:
return SV_MoveStep( ent, move, false);
default:
Host_Error( "%s: unknown mode %d\n", __func__, iMode );
}
return 0;
}