From mrbax.nospam.2007 at gmail.com Mon May 8 08:07:45 2017 From: mrbax.nospam.2007 at gmail.com (Michael Bax) Date: Mon, 8 May 2017 15:07:45 +0200 Subject: [netrek-dev] Robots, get_course, and casting floats to unsigned types. Message-ID: > Suggest making: > > #define RAD_TO_BRAD (float)(128f/M_PI) I would define a macro if this value were to appear elsewhere. > As author of to_dir, naming loss is felt, apparently some attachment still RIP to_dir(). He served long and well! > ... and the constant 40.743665f is a bit opaque. I shone a little light. :-) https://github.com/mrbax/netrek-server/commit/e875bce13e5c7054b26723c5e6880d4a64f8dec9 Cheers Michael