Improve comments.
This commit is contained in:
parent
017162da6e
commit
9af3ab4ecd
3 changed files with 6 additions and 3 deletions
2
main.c
2
main.c
|
@ -255,7 +255,7 @@ static void checkhints(void)
|
|||
game.hintlc[hint] = 0;
|
||||
return;
|
||||
default: // LCOV_EXCL_LINE
|
||||
// Should never hap[pen
|
||||
// Should never happen
|
||||
BUG(HINT_NUMBER_EXCEEDS_GOTO_LIST); // LCOV_EXCL_LINE
|
||||
}
|
||||
|
||||
|
|
3
misc.c
3
misc.c
|
@ -35,6 +35,7 @@ static void* xcalloc(size_t size)
|
|||
/* I/O routines (speak, pspeak, rspeak, sspeak, get_input, yes) */
|
||||
|
||||
static void vspeak(const char* msg, bool blank, va_list ap)
|
||||
/* Engine for various speak functions */
|
||||
{
|
||||
// Do nothing if we got a null pointer.
|
||||
if (msg == NULL)
|
||||
|
@ -122,6 +123,7 @@ static void vspeak(const char* msg, bool blank, va_list ap)
|
|||
}
|
||||
|
||||
void speak(const char* msg, ...)
|
||||
/* speak a specified string */
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, msg);
|
||||
|
@ -130,6 +132,7 @@ void speak(const char* msg, ...)
|
|||
}
|
||||
|
||||
void sspeak(const int msg, ...)
|
||||
/* Speak a message from the arbitrary-messages list */
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, msg);
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#define COND_FLUID 2 /* Liquid asset, see bit 1 */
|
||||
#define COND_NOARRR 3 /* Pirate doesn't go here unless following */
|
||||
#define COND_NOBACK 4 /* Cannot use "back" to move away */
|
||||
#define COND_ABOVE 5
|
||||
#define COND_ABOVE 5 /* Aboveground, but not in forest */
|
||||
#define COND_DEEP 6 /* Deep - e.g where dwarves are active */
|
||||
#define COND_FOREST 7 /* In the forest */
|
||||
#define COND_FORCED 8 /* Only one way in or out of here */
|
||||
|
@ -162,4 +162,4 @@ enum action_refs {{
|
|||
|
||||
{state_definitions}
|
||||
|
||||
#endif /* end DUNGEON_H */
|
||||
#endif /* end DUNGEON_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue