[Orxonox-commit 7356] r11973 - code/branches/Masterserver_FS18/src/modules/overlays/hud
mdedial at orxonox.net
mdedial at orxonox.net
Thu May 17 16:03:22 CEST 2018
Author: mdedial
Date: 2018-05-17 16:03:22 +0200 (Thu, 17 May 2018)
New Revision: 11973
Modified:
code/branches/Masterserver_FS18/src/modules/overlays/hud/HUDWeaponSystem.cc
Log:
Add comment about probable origin of a bug for future students. Good luck!
Modified: code/branches/Masterserver_FS18/src/modules/overlays/hud/HUDWeaponSystem.cc
===================================================================
--- code/branches/Masterserver_FS18/src/modules/overlays/hud/HUDWeaponSystem.cc 2018-05-17 13:58:17 UTC (rev 11972)
+++ code/branches/Masterserver_FS18/src/modules/overlays/hud/HUDWeaponSystem.cc 2018-05-17 14:03:22 UTC (rev 11973)
@@ -125,6 +125,9 @@
destroyHUDChilds();
+ // TODO:
+ // On network clients, owner_->getWeaponSystem() returns a nullpointer
+ // This causes the overlay to not be shown on clients.
if (owner_->getWeaponSystem())
{
const std::vector<WeaponPack*>& weaponPacks = owner_->getWeaponSystem()->getAllWeaponPacks();
More information about the Orxonox-commit
mailing list