[Circle] [Code] Saving code - Explain please.

From: DJ Pure (pure@ozramp.net.au)
Date: 11/27/96


G'Day all.
	i'm trying to figure this out. It's taken from db.c, void save_char(..)
function

<snip>
  if (!PLR_FLAGGED(ch, PLR_LOADROOM)) {
      if (load_room == NOWHERE) {
	      printf ("blah fhhjhj in here\n");
		  st.player_specials_saved.load_room = NOWHERE;
	  }
	  else {
		  printf ("lalalalalalalalaalalalalalal\n");
		  st.player_specials_saved.load_room = world[load_room].number;
	  }
  }
<snip>

Two questions. 

[i] Firstly, I'm using printf's to check if it goes in the second if or the
else.
Well, it goes into BOTH (?????? Don't ask me how). When i use the TRACE
command (I'm using MSVC/win95) the arrow doesn't go INTO that second if
statement, but jumps down to the ELSE. But, It prints both printf's to MY
screen. So the question is .. WHY?

[ii] Secondly,  What does the FIRST if statement me ->(!PLR_FLAGGED ..).
Thanks.

jus
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST