diff --git a/src/board.c b/src/board.c index 5312439..da2724b 100644 --- a/src/board.c +++ b/src/board.c @@ -39,23 +39,23 @@ void player_board(void) { } else if(vect_dist(&player->solid->pos, &p->solid->pos) > p->ship->gfx_space->sw * PILOT_SIZE_APROX) { - player_message("You are too far away to board your target"); + player_message("You are too far away to board your target."); return; } else if((pow2(VX(player->solid->vel)-VX(p->solid->vel)) + pow2(VY(player->solid->vel)-VY(p->solid->vel))) > (double)pow2(MAX_HYPERSPACE_VEL)) { - player_message("You are going too fast to board the ship"); + player_message("You are going too fast to board the ship."); return; } else if(pilot_isFlag(p, PILOT_BOARDED)) { - player_message("Your target cannot be boarded again"); + player_message("Your target cannot be boarded again."); return; } /* Pilot will be boarded. */ pilot_setFlag(p, PILOT_BOARDED); - player_message("Boarding ship %s", p->name); + player_message("Boarding ship %s.", p->name); /* Create the boarding window. */ board_wid = window_create("Boarding", -1, -1, BOARDING_WIDTH, BOARDING_HEIGHT); diff --git a/src/land.c b/src/land.c index 0e1b4de..9d61d9d 100644 --- a/src/land.c +++ b/src/land.c @@ -1121,7 +1121,7 @@ void takeoff(void) { /* Time goes by, triggers hook before takeoff. */ ltime_inc(RNG(2*LTIME_UNIT_LENGTH, 3*LTIME_UNIT_LENGTH)); lt = ltime_pretty(0); - player_message("taking off from %s on %s", land_planet->name, lt); + player_message("taking off from %s on %s.", land_planet->name, lt); free(lt); /* Initialize the new space. */ diff --git a/src/player.c b/src/player.c index 6197e0b..825686a 100644 --- a/src/player.c +++ b/src/player.c @@ -1251,7 +1251,7 @@ void player_setRadarRel(int mod) { if(gui.radar.res > RADAR_RES_MAX) gui.radar.res = RADAR_RES_MAX; else if(gui.radar.res < RADAR_RES_MIN) gui.radar.res = RADAR_RES_MIN; - player_message("Radar set to %dx", (int)gui.radar.res); + player_message("Radar set to %dx.", (int)gui.radar.res); } /* Get the next secondary weapon. */ @@ -1329,12 +1329,12 @@ void player_land(void) { return; } else if(vect_dist(&player->solid->pos, &planet->pos) > planet->gfx_space->sw) { - player_message("You are too far away to land on %s", planet->name); + player_message("You are too far away to land on %s.", planet->name); return; } else if((pow2(VX(player->solid->vel)) + pow2(VY(player->solid->vel))) > (double)pow2(MAX_HYPERSPACE_VEL)) { - player_message("You are going too fast to land on %s", planet->name); + player_message("You are going too fast to land on %s.", planet->name); return; } land(planet); /* Land the player. */ @@ -1392,7 +1392,7 @@ void player_jump(void) { else if(i == -3) player_message("You do not have enough fuel to hyperspace jump."); else - player_message("Preparing for hyperspace"); + player_message("Preparing for hyperspace."); } /* Player actually broke hyperspace (Let's enter a new system). */ diff --git a/src/rng.c b/src/rng.c index 3e57db6..0f335ea 100644 --- a/src/rng.c +++ b/src/rng.c @@ -11,9 +11,7 @@ #include "lephisto.h" #include "rng.h" -#include "log.h" -/* Mersenne twister state. */ static uint32_t MT[624]; static uint32_t mt_y; static int mt_pos = 0; /* Current number. */ @@ -204,11 +202,11 @@ double NormalInverse( double p ) { } else if(p == 0.) { errno = ERANGE; - return -HUGE_VAL /* minus "infinity". */; + return -HUGE_VAL /* Minus "infinity". */; } else if(p == 1.) { errno = ERANGE; - return HUGE_VAL /* "infinity". */; + return HUGE_VAL /* "Infinity". */; } /* Use different aproximations for different parts. */ else if(p < LOW) { diff --git a/src/space.c b/src/space.c index 49c71d5..9d48a75 100644 --- a/src/space.c +++ b/src/space.c @@ -412,7 +412,7 @@ void space_init(const char* sysname) { cur_system = systems_stack+i; lt = ltime_pretty(0); - player_message("Entering System %s on %s", sysname, lt); + player_message("Entering System %s on %s.", sysname, lt); free(lt); /* Handle background. */