-
-
Notifications
You must be signed in to change notification settings - Fork 501
Add createBuilding for server #3897
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
Add createBuilding for server #3897
Conversation
| case CCLIENTBUILDING: | ||
| { | ||
| CClientBuilding* pBuilding = static_cast<CClientBuilding*>(pSource); | ||
| const unsigned short usCurrentModel = pBuilding->GetModel(); |
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.
auto or std::uint16_t
currentModel instead of usCurrentModel?
building instead of pBuilding?
| CClientBuilding* pBuilding = static_cast<CClientBuilding*>(pSource); | ||
| const unsigned short usCurrentModel = pBuilding->GetModel(); | ||
|
|
||
| if (usCurrentModel != usModel) |
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.
early break?
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.
It's ok with one break at the end of the block.
…te_building_server
|
can u update the branch because network module version has changed in (10b2e97) and reslove conflicts too |
1377cb9 to
fbaff85
Compare
|
This is nice. Great job. It would be good to add building element type to map editor after this pr is merged |
Closes #3716
Test resource: building_serverside.zip