On Sun, 16 Aug 1998, Christoffer Lundberg wrote: >Is this a valid thing to write? It sure doesn't work anyways. > >if (world[ch->in_room].people == 0) { > >I want to make sure that there are absolutely no other chars present >in that room, and something will happen. It should work (but I write this at 2am), although it is highly misleading. 'people' would actually be a NULL pointer and NULL just happens to be 0 (in most simple form) so it would work. However, you cannot do '== 1' which is why I call it highly misleading. -- George Greer, greerga@circlemud.org | Genius may have its limitations, but http://mouse.van.ml.org/ (not done) | stupidity is not thus handicapped. http://www.van.ml.org/CircleMUD/ | -- Elbert Hubbard +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST