Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!boingo.med.jhu.edu!haven!mimsy!mojo!eng.umd.edu!stripes From: stripes@eng.umd.edu (Joshua Osborne) Newsgroups: comp.windows.x Subject: Re: Xtank Message-ID: <1991Apr3.050858.28666@eng.umd.edu> Date: 3 Apr 91 05:08:58 GMT References: <1991Mar14.140911.16242@porthos.cc.bellcore.com> <40517@cup.portal.com> Sender: news@eng.umd.edu (C-News) Reply-To: stripes@eng.umd.edu (Joshua Osborne) Distribution: usa Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 26 In article <40517@cup.portal.com>, Sticks@cup.portal.com (Erich Belgarion Proudfit) writes: > I have a version of Xtank from a Sun station. I've re-compiled it on a Data > General DG/UX workstation. It compiles correctly, but when I run the program > and try and enter the game, I get > atan2: DOMAIN error > Does anyone know how I can get this error fixed? What version of xtank? Try editing sysdep.h, and looking for lines like this #if... /* Avoid domain errors when both x and y are 0 */ #define ATAN2(Y,X) ((X)==0 && (Y)==0 ? 0.0 : atan2((double)Y, (double)X)) #else #define ATAN2(Y,X) atan2((double)Y, (double)X) #endif And chage the #if... line to: #if defined(sun) || defined(hpux) || defined(apollo) || defined(mips) -- stripes@eng.umd.edu "Security for Unix is like Josh_Osborne@Real_World,The Multitasking for MS-DOS" "The dyslexic porgramer" - Kevin Lockwood "CNN is the only nuclear capable news network..." - lbruck@eng.umd.edu (Lewis Bruck)