Skip to content

Instantly share code, notes, and snippets.

Counting objects: 13, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 11.20 KiB, done.
Total 10 (delta 6), reused 0 (delta 0)
diff --git a/horizons/world/__init__.py b/horizons/world/__init__.py
index 0556cf0..e3cb83d 100644
--- a/horizons/world/__init__.py
+++ b/horizons/world/__init__.py
@@ -283,6 +283,9 @@ class World(BuildingOwner, WorldObject):
def load_raw_map(self, savegame_db, preview=False):
self.map_name = savegame_db.map_name
+ # Calculate map dimensions.
+
(23:15:53) $ git diff
diff --git a/horizons/world/__init__.py b/horizons/world/__init__.py
index 0556cf0..1da75cf 100644
--- a/horizons/world/__init__.py
+++ b/horizons/world/__init__.py
@@ -290,6 +290,8 @@ class World(BuildingOwner, WorldObject):
self.min_y -= self.map_padding
self.max_x += self.map_padding
self.max_y += self.map_padding
+ print self.min_x, self.min_y, self.max_x, self.max_y
@nihathrael
nihathrael / kubuntu-to-neon.md
Last active July 11, 2023 15:58
How to upgrade kubuntu 16.04 -> KDE neon

This worked for me and might not work for your.

Try it at your own risk!

Add the neon repositories and install the neon desktop

$ wget -qO - 'http://archive.neon.kde.org/public.key' | sudo apt-key add -
$ sudo apt-add-repository http://archive.neon.kde.org/user
$ sudo apt-get update
$ sudo apt-get install neon-desktop