Skip to content

Commit a9d10b8

Browse files
fixed horizon circles in nyan mode
1 parent ee40d53 commit a9d10b8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

cache.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# version 139
2+
# version 140
33

44
# gogole maps files
55
http://maps.google.com/maps/api/js?v=3.10&sensor=false&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg

js/tracker.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ function addPosition(position) {
747747

748748
// nyan mod
749749
if(window.location.search == "?nyan" && vehicle_info.vehicle_type == "balloon") {
750+
// form a nyancat
750751
vehicle_info.marker.setMap(null);
751752
vehicle_info.marker.setMode = function(derp) {};
752753
vehicle_info.marker_shadow = new google.maps.Marker({
@@ -762,8 +763,13 @@ function addPosition(position) {
762763
},
763764
clickable: false
764765
});
766+
// rebind horizon circles to follow nyan
767+
horizon_circle.bindTo('center', vehicle_info.marker_shadow, 'position');
768+
subhorizon_circle.bindTo('center', vehicle_info.marker_shadow, 'position');
769+
765770
vehicle_info.image_src = host_url + markers_url + "hab_nyan.gif";
766771

772+
// whats nyan only purpose? Make people happy, of course. And how?
767773
var rainbow = ["#ff0000", "#fc9a00", "#f6ff00", "#38ff01", "#009aff","#0000ff"];
768774
vehicle_info.polyline = [];
769775

@@ -780,7 +786,7 @@ function addPosition(position) {
780786
}
781787
}
782788

783-
789+
// let the nyan free
784790
vehicles.push(vehicle_info);
785791
}
786792

0 commit comments

Comments
 (0)