Skip to content

Commit

Permalink
remove buttons that crash because crashed are not cool!
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealSeq committed Nov 17, 2024
1 parent f58fadf commit 9647a01
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions server-client/src/client-static/src/shellshock.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -3799,16 +3799,18 @@ function onMapComplete() { //15th, (callback of loadMap at end of onLoadingComp
};

function startRendering() { //16th, starts rendering and game loop
hideDarkOverlay();
document.getElementById("game").style.display = "block";
document.getElementById("readouts").style.display = "block";
hideDarkOverlay();
document.getElementById("game").style.display = "block";
document.getElementById("readouts").style.display = "block";
if(!playOffline) { //there 2 crash in offline play so might as well not display them in the first place
document.getElementById("homeButton").style.display = "inline-block";
document.getElementById("friendsButton").style.display = "inline-block";
resize();
captureKeys();
mapOverview && doMapOverviewCamera();
}
resize();
captureKeys();
mapOverview && doMapOverviewCamera();

gameScene.registerBeforeRender(mainGameLoop);
gameScene.registerBeforeRender(mainGameLoop);

engine.runRenderLoop(function () { gameScene.render(); });
};
Expand Down

0 comments on commit 9647a01

Please sign in to comment.