Skip to content
Browse files

Point buffer bug fix

  • Loading branch information...
1 parent 1f953cc commit 9b4707bba3af2b2e297d46049fae5798bc25faa3 @toddtreece toddtreece committed Jun 13, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 example/js/blode_map.js
View
7 example/js/blode_map.js
@@ -21,10 +21,10 @@ var BlodeMap = Class.create({
this._crosshair_color = "rgba(0, 0, 0, 0.5)";
this._point_buffer = {};
this._point_buffer_size = 1000;
- this._shipment_color = "rgba(0, 0, 255, 1)";
+ this._shipment_color = "rgba(0, 0, 255, 0.5)";
this._shipment_buffer = [];
this._shipment_buffer_size = 600;
- this._order_color = "rgba(0, 255, 0, 1)";
+ this._order_color = "rgba(0, 255, 0, 0.5)";
this._order_buffer = [];
this._order_buffer_size = 600;
@@ -297,7 +297,8 @@ var BlodeMap = Class.create({
this._point_buffer.data.unshift(point);
// remove the last item from the buffer
- this._point_buffer.data.data = this._point_buffer.data.slice(0, -1);
+ this._point_buffer.data = this._point_buffer.data.slice(0, -1);
+
}
this.render_foreground();

0 comments on commit 9b4707b

Please sign in to comment.
Something went wrong with that request. Please try again.