$OpenBSD: patch-src_CosmoSmashEngine_cpp,v 1.1 2002/09/28 16:40:25 naddy Exp $
--- src/CosmoSmashEngine.cpp.orig	Sat Sep 28 18:40:42 2002
+++ src/CosmoSmashEngine.cpp	Sat Sep 28 18:41:03 2002
@@ -1048,7 +1048,7 @@ CosmoSmashEngine::animateAutomaticCharac
 	{
 	    Couple diff = playerSprite->getPos() - pulsar->getPos();
 	    // NOTE: use projection instead of trig; see animateSaucers()
-	    double angle = atan2(diff.y, diff.x);
+	    double angle = atan2(double(diff.y), double(diff.x));
 	    Couple newSpeed(int(PULSAR_SPEED * cos(angle)),
 					int(PULSAR_SPEED * sin(angle)));
 	    if (newSpeed.isZero())
