Jump to content
Eternal Lands Official Forums
Sign in to follow this  
Vegar

Patch #000336 - Improvements to mapmarking

Recommended Posts

I have a quick question about this. Why don't you use the my_ string functions throughout the code, i.e. my_strcp instead of strcpy, my_strncp instead of strncpy and my_strcat instead of strcat? Also you use my_strncompare at the beginning (of the patch file), but later down you use strcmp. Do the my_ functions not work for you here?

Share this post


Link to post
Share on other sites

The my_strncompare in the beginning is because I copied the if() statement from something else and edited it.

the strcat() calls I copied from other parts of the code (multiplayer.c and/or interface.c)

 

I've always wondered why you use the my_* functions. They seem to do the same thing.

Is it for portability?

 

If you want I can change it to use the my_ functions, no problem.

Share this post


Link to post
Share on other sites

I think it would be much cleaner if only one version is used throughout the code, whether it be the standard versions or the my_ versions doesn't really matter imho.

Share this post


Link to post
Share on other sites

The reason why I made those functions is so we can debug stuff easier. If the program crashes ina system lib, you are out of luck. If it crashes in your function, it's easier to detect what was wrong.

Share this post


Link to post
Share on other sites
Added #mark <name> to mark your current position on the map using the current marking system and

#goto <mark name> or #goto <x,y> (used some of Fred Penner's old patch)

(...)

It would be nice to hear some feedback on this.

TY @)--}----

I can't tell if it works but if it does, it will be a really nice feature :D And it will make the flower tutorial quest easier (maybe tut. NPC should tell about the #goto command), so not every beginner needs to ask "where is $x_coord,$y_coord" :)

 

With regards

Lachesis

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×