Jump to content
Logo
Your Metin2 zone for C++, Python, Lua.

Regen's direction integer type fix


GameCore

Recommended Posts

Was making a quest for a server I am working on and, he noticed that after the value 255, the direction set was not working properly.

For some reason, dir is an int almost everywhere, except his declaration in the struct and the two lua functions.

I understand the int in the spawnmob function as a parameter, for the -1 thing to decide to make it random, but then, it should be a number between 0 and 359 but somehow they decided to go with an 8bits representation number (BYTE)

So here we are fixing another korean mistake..

Go to regen.h, and replace:

 

This is the hidden content, please

 

  • Like 2
Link to comment
  • 2 months later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Style Version: 0.1

The code was completely created from scratch and optimized.

The basic style on which it was created: Default

Created by: Grzyb.ovh

The style was to be simple to browse topics, devoid of graphics, uniform in color and definitely simple. ×

×
×
  • Create New...

Important Information

Do you like cookies? 🍪 We use cookies to provide the highest quality of service. Learn more