Skip to content

Conversation

@TheNormalnij
Copy link
Member

@TheNormalnij TheNormalnij commented Dec 22, 2024

Closes #3716
Test resource: building_serverside.zip

case CCLIENTBUILDING:
{
CClientBuilding* pBuilding = static_cast<CClientBuilding*>(pSource);
const unsigned short usCurrentModel = pBuilding->GetModel();
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

early break?

Copy link
Member Author

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.

@TheNormalnij TheNormalnij marked this pull request as ready for review January 5, 2025 15:22
@Proxy-99
Copy link
Contributor

can u update the branch because network module version has changed in (10b2e97) and reslove conflicts too

@TheNormalnij TheNormalnij marked this pull request as draft January 24, 2025 15:52
@TheNormalnij TheNormalnij marked this pull request as ready for review February 2, 2025 19:27
@TheNormalnij TheNormalnij force-pushed the TheNormalnij/create_building_server branch from 1377cb9 to fbaff85 Compare February 2, 2025 19:27
@starfleet001
Copy link

This is nice. Great job. It would be good to add building element type to map editor after this pr is merged

@botder botder merged commit 6e22129 into multitheftauto:master May 26, 2025
6 checks passed
@botder botder added the enhancement New feature or request label May 26, 2025
@botder botder added this to the 1.6.1 milestone May 26, 2025
MTABot pushed a commit that referenced this pull request May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding createBuilding server side

6 participants