Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Bugfix] Fixes incorrect 'reset in place' alignment on some trailers/loads #511
The cameranodepos / cameranodedir system is pretty arcane code. Coder needs to know RoR jargon to understand it. Truckfile "cameras" and rig_t::cameranode* have nothing to do with camera, really, they orient vehicle in space. I'd like the vars to be named differently at least. Further, do we even need this system? Couldn't the orientation be determined by node coordinates in truckfile?
Further, it looks like the code checks for cameranode* validity and only then uses them. Shouldn't trucks without "camera" not spawn at all?