RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1.01k stars 175 forks source link

Hide remote vehicle glitch #2911

Closed tritonas00 closed 2 years ago

tritonas00 commented 2 years ago

Hiding remote vehicle glitches on the remote side if the user who hides has the same vehicle spawned for the first time. If he spawns the same vehicle, remove it, respawn it again and hide the remote one, no glitch.

https://user-images.githubusercontent.com/2660424/172816335-37c2687a-37a7-46c9-a73c-7a593e474e74.mp4

I think something must be wrong here https://github.com/RigsOfRods/rigs-of-rods/blob/master/source/main/gui/panels/GUI_TopMenubar.cpp#L742-L762 since it glitches only the first time and not the rest

Or we forgot a ActorState::NETWORKED_HIDDEN check somewhere.

I don't understand why it happens only with the same vehicle and only the first time though, makes no sense :neutral_face: