New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[no sq] Server bug fixes and unit tests #14423
Conversation
I'll check how easily I can test it from C++. Devtest is challenging due to missing direct control and insight into this part. |
This comment was marked as resolved.
This comment was marked as resolved.
@grorp Tests added. |
delete m_thread; | ||
// Note that this also deletes and saves the map. | ||
delete m_env; | ||
m_env = nullptr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setting m_env to nullptr in destructor means we have a scope issue somewhere in the destruction. Which code part uses m_env after that and will break ? (it means we should find a wait to split some objects at a moment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just good practice to not leave dangling pointers around
|
||
// Activate object | ||
if (object->m_static_exists) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong brace :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
intentional so I can properly place the comment before else
, suggestions welcome
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not too familiar with static object stuff. But code looks sane.
To do
This PR is a
Work in Progress/ Ready for Review.How to test
static_save = false
are persisted #14420static_save = false
are persisted #14420 and a revision before commit 4 to create a world with statically saved objects that shouldn't be static