Fixed camera data not being sent when coordinates are too large
This commit is contained in:
parent
0fb1f15cca
commit
470faf1cc5
6 changed files with 58 additions and 21 deletions
|
|
@ -100,7 +100,6 @@ class World {
|
|||
|
||||
uint64_t canvasScale = 0;
|
||||
private:
|
||||
|
||||
ClientPortionID get_max_id(ServerPortionID serverID);
|
||||
|
||||
void init_client_callbacks();
|
||||
|
|
@ -108,6 +107,13 @@ class World {
|
|||
|
||||
void draw_other_player_cursors(SkCanvas* canvas, const DrawData& drawData);
|
||||
|
||||
TimePoint timeToSendCameraData;
|
||||
struct SentCameraData {
|
||||
CoordSpaceHelper camTransform;
|
||||
Vector2f windowSize;
|
||||
};
|
||||
std::optional<SentCameraData> sentCameraData;
|
||||
|
||||
ClientPortionID nextClientID = 0;
|
||||
WorldVec mousePreviousWorldVec = {0, 0};
|
||||
WorldVec mouseWorldMove = {0, 0};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue