[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) >
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);

View File

@ -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. */

View File

@ -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). */

View File

@ -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) {

View File

@ -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. */