Jump to content
  • 0

Why is this crashing my map server?


Question

Posted (edited)

I have changed this part of skill.c. From this:

if(fixed == 0) {
 fixed = (int)time * 20 / 100; // fixed time
 time = time * 80 / 100; // variable time
}
else if( fixed == 0 ) {
 fixed = 0;
}

To this:

if( fixed == 0 && sd->class_&JOBL_THIRD){
 fixed = (int)time * 20 / 100; // fixed time
 time = time * 80 / 100; // variable time
}
if (!sd->class_&JOBL_THIRD) {// no fixed cast time
 fixed = 0;
}

And then when I boot up the server, the map server crashes as soon as the char server connects. But I do not get any compile errors or warnings. Any idea why?

Edited by michaelsoftman

4 answers to this question

Recommended Posts

Posted

cause not only sd use that fonction I suppose.

I should check but that my raw guess, you can validate it with the coredump.

Try to add another if case for class_

Posted

na but he shouldn't do that since mob/homon etc won't ever enter here then and won't be concern.

(dunno who enter atm you need to test, but maybe that what u want yeah)

otherwise jsut add :

if(sd) blablabla;

else if blabla

else foo;

Join the conversation

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

Guest
Answer this question...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...