Update RebuildComponent.h

Quickbuilds jump fix

Corrected an error where the builder was erronously changed to an empty lwoobjid when a quickbuild was completed, causing the builds to no longer jump on completion (if configured to do so.)  Packet captures from live show that we do not want to get rid of the builder during resetting or during completion of the build so the file has been changed to not clear the builder in those cases.
This commit is contained in:
EmosewaMC
2022-05-02 22:32:00 -07:00
parent 427c4a8c33
commit 6b409303af
2 changed files with 19 additions and 9 deletions

View File

@@ -216,7 +216,11 @@ public:
*/
void CancelRebuild(Entity* builder, eFailReason failReason, bool skipChecks = false);
private:
/**
* Whether or not the quickbuild state has been changed since we last serialized it.
*/
bool m_StateDirty = true;
/**
* The state the rebuild is currently in
*/
@@ -235,7 +239,7 @@ private:
/**
* The position that the rebuild activator is spawned at
*/
NiPoint3 m_ActivatorPosition {};
NiPoint3 m_ActivatorPosition = NiPoint3::ZERO;
/**
* The entity that represents the rebuild activator