Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmeme01 committed Feb 27, 2024
1 parent 30a98f8 commit 8d0d934
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions server/game/src/data/types/gd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl PlayerAccountData {
color2: self.icons.color2,
glow_color: self.icons.glow_color,
level_id,
name_color: self.special_user_data.as_ref().map(|x| x.name_color),
// name_color: self.special_user_data.as_ref().map(|x| x.name_color),
}
}

Expand Down Expand Up @@ -124,7 +124,7 @@ pub struct PlayerRoomPreviewAccountData {
pub color2: i16,
pub glow_color: i16,
pub level_id: LevelId,
pub name_color: Option<Color3B>,
// pub name_color: Option<Color3B>,
}

/* AssociatedPlayerData */
Expand Down
18 changes: 9 additions & 9 deletions src/data/types/gd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ class PlayerRoomPreviewAccountData {
buf.writeI16(color2);
buf.writeI16(glowColor);
buf.writePrimitive(levelId);
if (nameColor.has_value()) {
buf.writeBool(true);
buf.writeColor3(nameColor.value());
} else {
buf.writeBool(false);
}
// if (nameColor.has_value()) {
// buf.writeBool(true);
// buf.writeColor3(nameColor.value());
// } else {
// buf.writeBool(false);
// }
}

GLOBED_DECODE {
Expand All @@ -140,9 +140,9 @@ class PlayerRoomPreviewAccountData {
color2 = buf.readI16();
glowColor = buf.readI16();
levelId = buf.readPrimitive<LevelId>();
if (buf.readBool()) {
nameColor = buf.readColor3();
}
// if (buf.readBool()) {
// nameColor = buf.readColor3();
// }
}

int32_t accountId, userId;
Expand Down
1 change: 0 additions & 1 deletion src/hooks/appdelegate.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "appdelegate.hpp"

#include <hooks/loading_layer.hpp>
#include <net/network_manager.hpp>
#include <util/lowlevel.hpp>

Expand Down
1 change: 0 additions & 1 deletion src/hooks/loading_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ using namespace geode::prelude;
}

void HookedLoadingLayer::loadingFinished() {
log::debug("loading finished got called!!");
if (m_fields->preloadingStage == 0) {
m_fields->loadingStartedTime = util::time::systemNow();
log::debug("preloading assets");
Expand Down

0 comments on commit 8d0d934

Please sign in to comment.