mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user