Fixed scale up amount calculations
This commit is contained in:
parent
85cc0c2457
commit
976c71215b
5 changed files with 6 additions and 6 deletions
|
|
@ -74,7 +74,7 @@ void DrawingProgram::init_server_callbacks() {
|
|||
if(clientData->get_grid_size() < world.ownClientData->get_grid_size()) {
|
||||
WorldScalar scaleUpAmount = get_canvas_scale_up_amount(world.ownClientData->get_grid_size(), clientData->get_grid_size());
|
||||
for(auto& [netID, coord] : transforms)
|
||||
coord.inverseScale *= scaleUpAmount;
|
||||
coord.scale_about(WorldVec{0, 0}, scaleUpAmount, true);
|
||||
}
|
||||
|
||||
process_transform_message(transforms);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue