pub unsafe fn sync_command_hook(
    data: *const u8,
    orig: unsafe extern fn(*const u8) -> u32,
) -> u32 {
    if is_local_player_observer() {
        1
    } else {
        orig(data)
    }
}
// Don't validate sync commands when observing. As the sync contains visibility info, observers
// are out of sync from everyone else, as their vision settings are not sent to other players.
Don't validate sync commands when observing. As the sync contains visibility info, observers
are out of sync from everyone else, as their vision settings are not sent to other players.
Don ' t validate sync commands when observing . As the sync contains visibility info observers are out of sync from everyone else as their vision settings are not sent to other players .
pub unsafe fn sync_command_hook(
    data: *const u8,
    orig: unsafe extern fn(*const u8) -> u32,
) -> u32 {
    if is_local_player_observer() {
        1
    } else {
        orig(data)
    }
}
pub unsafe fn sync_command_hook ( data : * const u8 , orig : unsafe extern fn ( * const u8 ) -> u32 , ) -> u32 { if is_local_player_observer ( ) { 1 } else { orig ( data ) } }
Don't validate sync commands when observing.
Don ' t validate sync commands when observing .
data
*const u8
orig
unsafe extern fn(*const u8) -> u32
data
*const u8
orig
unsafe extern fn(*const u8) -> u32