Fix and clean up some comments

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2015-06-14 11:36:40 +02:00
parent 9f25de3dce
commit eba87789ab
37 changed files with 73 additions and 69 deletions

View file

@ -79,7 +79,7 @@ wall(void)
}
/*
* Send flash message(s) from @us to @to.
* Send flash message(s) to @to.
* Null @to broadcasts to all.
* @message is UTF-8. If it is null, prompt for messages interactively.
* Return RET_OK.
@ -107,11 +107,11 @@ chat(struct natstr *to, char *message)
}
/*
* Send flash message @message from @us to @to.
* Send flash message @message to @to.
* @message is UTF-8.
* Null @to broadcasts to all.
* A header identifying @us is prepended to the message. It is more
* verbose if @verbose.
* A header identifying the player is prepended to the message. It is
* more verbose if @verbose.
*/
static int
sendmessage(struct natstr *to, char *message, int verbose)

View file

@ -91,7 +91,7 @@ info(void)
snprintf(filename, sizeof(filename), "%s/%s", infodir, name);
fp = fopen(filename, "r");
if (fp == NULL) {
/* may be a "partial" request. */
/* may be a "partial" request. */
info_dp = opendir(infodir);
if (!info_dp) {
pr("Can't open info dir\n");
@ -300,7 +300,7 @@ info(void)
snprintf(filename, sizeof(filename) - 1, "%s\\%s", infodir, name);
fp = fopen(filename, "rb");
if (fp == NULL) {
/* may be a "partial" request. */
/* may be a "partial" request. */
HANDLE hDir;
WIN32_FIND_DATA fData;
strcat(filename, "*");

View file

@ -143,7 +143,7 @@ launch_as(struct plnstr *pp)
|| !pln_is_in_orbit(&plane)) {
pr("No such satellite exists!\n");
return RET_FAIL;
/* Can be abused to find satellite ids. Tolerable. */
/* Can be abused to find satellite ids. Tolerable. */
}
if (mapdist(pp->pln_x, pp->pln_y, plane.pln_x, plane.pln_y)
@ -284,7 +284,7 @@ launch_missile(struct plnstr *pp)
}
/*
* Launch a satellite.
* Launch satellite @pp.
* Return RET_OK if launched (even when satellite fails),
* else RET_SYN or RET_FAIL.
*/

View file

@ -95,7 +95,7 @@ display_mark(i_type only_itype, int only_cheapest)
int cheapest_items[I_MAX + 1];
i_type i;
/* Execute trades so report lists only lots that are still available. */
/* Execute trades so report lists only lots that are still available. */
check_market();
check_trade();

View file

@ -250,7 +250,7 @@ move(void)
if (amount > ITEM_MAX - amt_dst) {
pr("Only enough room for %d in %s. The goods will be returned.\n",
ITEM_MAX - amt_dst, xyas(sect.sct_x, sect.sct_y, player->cnum));
/* FIXME Not nice. Move what we can and return the rest. */
/* FIXME Not nice. Move what we can and return the rest. */
getsect(x, y, &sect);
}

View file

@ -40,13 +40,6 @@
* Y = Yes, wants an update.
* N = No, change status to not wanting an update.
* C = Check (the default), check how many want an update.
*
* Sets/Unsets a nation flag.
*
* Only considers NORMAL, active countries. No Deities or sanctuaries.
*
* After the change, send a message to the "tm" for it to check
* if an update should occur.
*/
#include <config.h>