Your code differs from the linked version in many regards.  e.g.:

> war.c:229: warning: assignment from incompatible pointer type

  original:  warmaster = get_char_vnum(MOB_VNUM_WARMASTER);
  yours:  warmaster = get_mob_index(MOB_VNUM_WARMASTER);

get_mob_index returns a MOB_INDEX_DATA*, which rightly can't be
assigned to a CHAR_DATA*.  Obviously this person had a non-stock
function "get_char_vnum" in their code that you'll need to implement
make it work.

Some of the other errors are caused by your lack of a bool type.  I'd
suggest typedefing bool to an int or some such.  Or just change all
those bools to ints.

You have CHAR_DATA *ch in functions where there are none in the
original.  Then your code tries to use them without assigning anything
to them.

--P

On 1/2/06, Maurice Visser <[EMAIL PROTECTED]> wrote:
> I just searched the ROM mailing list archives 
> (http://www.the-infinite.org/lists/romlist/) for a "snippet war". This was 
> the first result that came back.
>
>
> SNIPPET: Automated Wars
> --------------------------------------------------------------------------------
> To: <rom#rom,org>
> Subject: SNIPPET: Automated Wars
> From: markanth <markanth#SpaceServices,net>
> Date: Wed, 15 Aug 2001 04:27:40 -0400 (EDT)
>
> http://www.the-infinite.org/lists/romlist/2001/08/msg00415.html
> --
> ROM mailing list
> [email protected]
> Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>
--
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom

Reply via email to