Re: [CODE] Unterminated character constant

From: Akuma/Chris Baggett/DOOMer (doomer18@EARTHLINK.NET)
Date: 04/06/98

At 12:43 AM 4/7/98 EDT, you wrote:
>Would this line of code hurt them more???
> GET_HIT(vict) = GET_MAX_HIT(vict) - GET_MAX_HIT(vict) + 1;
>What it looks like to me is you're saying Let his current hit points equal
>his maximum hit points minus his maximum hit points plus one.
>MAX - max + 1  is lower than 0.

Heh, sorry to point this out friend, but your math is wrong.
there is no 0 or lower than 0 to it.  (any number) - (itself) + 1 = 1

Sorry, couldn't resist pointing out one of the most obvious rules
of basic mathematics.


  Heh, I have finally made hedit properly save_internally.
I've just gotta clean up the code to make it readable, and it'll work
fine.  I'm not gonna make a patch, b/c I see no point.

I added three extra functions (add_help_color(), get_a_line() and copy_help())
get_a_line take two strings as an argument, and returns
the first line (terminated with either a '\r' or a '\n' so it can
    be used before or after a strip_cr() function)
and returns a pointer to the rest of the line AFTER the \r\n or \n.
add_help_color() is for those of you who would like to add color
to their help files.

This also includes a simple addition to db.c.

Anyway, if anyone would like to get ahold of this (i know many would)
just e-mail me.)

Code On
Akuma the Raging Coder

  | "The poets talk about love, but what I talk about is DOOM, |
  |      because in the end, DOOM is all that counts." -       |
  |   Alex Machine/George Stark/Stephen King, The Dark Half    |
  |        "Nothing is IMPOSSIBLE, Just IMPROBABLE"            |
  |   "Easier Said Than Done, But Better Done Than Said..."    |

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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