 		 */
 		public static function line(x1:int, y1:int, x2:int, y2:int, color:uint = 0xFFFFFF):void
 		{
-			if (color < 0xFF000000) color = 0xFF000000 | color;
+			if (color >= 0xFF000000) color &= 0xFFFFFF;
 			
 			// get the drawing positions
 			x1 -= _camera.x;

					}
				}
				screen.setPixel32(x2, y2, color);
				return;
			}
		}
		

					}
				}
				screen.setPixel32(x2, y2, color);
			}
			else
			{
