[Change] Added punctuation to player_message()s

This commit is contained in:
Allanis 2013-08-17 15:37:05 +01:00
parent a60c84465f
commit ce15505f7e
5 changed files with 12 additions and 14 deletions

View File

@ -39,23 +39,23 @@ void player_board(void) {
} }
else if(vect_dist(&player->solid->pos, &p->solid->pos) > else if(vect_dist(&player->solid->pos, &p->solid->pos) >
p->ship->gfx_space->sw * PILOT_SIZE_APROX) { 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; return;
} }
else if((pow2(VX(player->solid->vel)-VX(p->solid->vel)) + else if((pow2(VX(player->solid->vel)-VX(p->solid->vel)) +
pow2(VY(player->solid->vel)-VY(p->solid->vel))) > pow2(VY(player->solid->vel)-VY(p->solid->vel))) >
(double)pow2(MAX_HYPERSPACE_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; return;
} }
else if(pilot_isFlag(p, PILOT_BOARDED)) { else if(pilot_isFlag(p, PILOT_BOARDED)) {
player_message("Your target cannot be boarded again"); player_message("Your target cannot be boarded again.");
return; return;
} }
/* Pilot will be boarded. */ /* Pilot will be boarded. */
pilot_setFlag(p, PILOT_BOARDED); pilot_setFlag(p, PILOT_BOARDED);
player_message("Boarding ship %s", p->name); player_message("Boarding ship %s.", p->name);
/* Create the boarding window. */ /* Create the boarding window. */
board_wid = window_create("Boarding", -1, -1, BOARDING_WIDTH, BOARDING_HEIGHT); board_wid = window_create("Boarding", -1, -1, BOARDING_WIDTH, BOARDING_HEIGHT);

View File

@ -1121,7 +1121,7 @@ void takeoff(void) {
/* Time goes by, triggers hook before takeoff. */ /* Time goes by, triggers hook before takeoff. */
ltime_inc(RNG(2*LTIME_UNIT_LENGTH, 3*LTIME_UNIT_LENGTH)); ltime_inc(RNG(2*LTIME_UNIT_LENGTH, 3*LTIME_UNIT_LENGTH));
lt = ltime_pretty(0); 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); free(lt);
/* Initialize the new space. */ /* Initialize the new space. */

View File

@ -1251,7 +1251,7 @@ void player_setRadarRel(int mod) {
if(gui.radar.res > RADAR_RES_MAX) gui.radar.res = RADAR_RES_MAX; 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; 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. */ /* Get the next secondary weapon. */
@ -1329,12 +1329,12 @@ void player_land(void) {
return; return;
} }
else if(vect_dist(&player->solid->pos, &planet->pos) > planet->gfx_space->sw) { 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; return;
} }
else if((pow2(VX(player->solid->vel)) + pow2(VY(player->solid->vel))) > else if((pow2(VX(player->solid->vel)) + pow2(VY(player->solid->vel))) >
(double)pow2(MAX_HYPERSPACE_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; return;
} }
land(planet); /* Land the player. */ land(planet); /* Land the player. */
@ -1392,7 +1392,7 @@ void player_jump(void) {
else if(i == -3) else if(i == -3)
player_message("You do not have enough fuel to hyperspace jump."); player_message("You do not have enough fuel to hyperspace jump.");
else else
player_message("Preparing for hyperspace"); player_message("Preparing for hyperspace.");
} }
/* Player actually broke hyperspace (Let's enter a new system). */ /* Player actually broke hyperspace (Let's enter a new system). */

View File

@ -11,9 +11,7 @@
#include "lephisto.h" #include "lephisto.h"
#include "rng.h" #include "rng.h"
#include "log.h"
/* Mersenne twister state. */
static uint32_t MT[624]; static uint32_t MT[624];
static uint32_t mt_y; static uint32_t mt_y;
static int mt_pos = 0; /* Current number. */ static int mt_pos = 0; /* Current number. */
@ -204,11 +202,11 @@ double NormalInverse( double p ) {
} }
else if(p == 0.) { else if(p == 0.) {
errno = ERANGE; errno = ERANGE;
return -HUGE_VAL /* minus "infinity". */; return -HUGE_VAL /* Minus "infinity". */;
} }
else if(p == 1.) { else if(p == 1.) {
errno = ERANGE; errno = ERANGE;
return HUGE_VAL /* "infinity". */; return HUGE_VAL /* "Infinity". */;
} }
/* Use different aproximations for different parts. */ /* Use different aproximations for different parts. */
else if(p < LOW) { else if(p < LOW) {

View File

@ -412,7 +412,7 @@ void space_init(const char* sysname) {
cur_system = systems_stack+i; cur_system = systems_stack+i;
lt = ltime_pretty(0); lt = ltime_pretty(0);
player_message("Entering System %s on %s", sysname, lt); player_message("Entering System %s on %s.", sysname, lt);
free(lt); free(lt);
/* Handle background. */ /* Handle background. */