mirror of
https://git.neonteam.dev/amizing/robinsr.git
synced 2025-03-12 03:28:30 -04:00
fix: fix map open on train
This commit is contained in:
parent
ec241e4387
commit
5514615c91
@ -53,11 +53,7 @@ pub async fn on_enter_scene_cs_req(
|
|||||||
.is_err()
|
.is_err()
|
||||||
{
|
{
|
||||||
res.retcode = Retcode::RetSceneEntryIdNotMatch as u32;
|
res.retcode = Retcode::RetSceneEntryIdNotMatch as u32;
|
||||||
return;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
res.alggcgibmmh = req.alggcgibmmh;
|
|
||||||
res.abnfeadenmg = player.scene.entry_id != req.entry_id;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn on_get_scene_map_info_cs_req(
|
pub async fn on_get_scene_map_info_cs_req(
|
||||||
@ -238,7 +234,11 @@ async fn load_scene(
|
|||||||
entry_id,
|
entry_id,
|
||||||
game_mode_type: scene.plane_type,
|
game_mode_type: scene.plane_type,
|
||||||
leader_entity_id: 1,
|
leader_entity_id: 1,
|
||||||
world_id: scene.world_id,
|
world_id: if scene.world_id == 100 {
|
||||||
|
501
|
||||||
|
} else {
|
||||||
|
scene.world_id
|
||||||
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user