Skip to content

Commit

Permalink
[Fix] Center the map on the player on page load
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadawoo committed Dec 18, 2024
1 parent 36e780b commit d6d727c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/view/HtmlPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class HtmlPage
// Increment those variables when you modify the CSS or JS files. This ensures
// that the users' browsers reload the up-to-date files, instead of using
// the obsolete ones stored in their cache.
private $css_js_version = 50.4;
private $css_js_version = 50.5;

/**
* Sets HTTP headers to secure the website
Expand Down
2 changes: 1 addition & 1 deletion public/resources/js/onPageLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ if (document.getElementById('map') !== null) {
if(isCitizenInGame() === true) {
setTimeout(function() {
var myCityZoneId = getMyCityZoneId();

centerMapOnMe();
// Add a location sign above the city of the player
addCityLocationMarker(myCityZoneId);
// Start in the "action" mode (centered on the current player)
Expand Down

0 comments on commit d6d727c

Please sign in to comment.