Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
refactor: more client clean ups; use shared net
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Feb 22, 2024
1 parent 24370b2 commit 95ae496
Show file tree
Hide file tree
Showing 63 changed files with 2,010 additions and 3,219 deletions.
10 changes: 5 additions & 5 deletions client/src/emote.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ v([109, 101, 110, 117]);
v([105, 110, 105, 116]);
v([99, 104, 101, 97, 116]);
EmoteBarn.prototype = {
n: function() {
free: function() {
if (device.touch) {
$(document).off("touchstart", this.onTouchStart);
this.emoteButtonElem.off("touchstart");
Expand Down Expand Up @@ -689,11 +689,11 @@ EmoteBarn.prototype = {
}
}
this.dr = r;
if ((t != r.__id || !!r.Le.he) && !this.disable) {
this.n();
if ((t != r.__id || !!r.netData.he) && !this.disable) {
this.free();
this.disable = true;
}
const z = m.perkMode && !r.Le.Te;
const z = m.perkMode && !r.netData.Te;
if (
!this.disable &&
!z &&
Expand Down Expand Up @@ -853,7 +853,7 @@ EmoteBarn.prototype = {
let G = v2.create(0, 0);
let X = 0;
const K = S.u(U.playerId);
if (K && !K.Le.he) {
if (K && !K.netData.he) {
G = v2.copy(K.pos);
X = K.layer;
W = true;
Expand Down
Loading

0 comments on commit 95ae496

Please sign in to comment.