• 0

C to C++ command


When Rathena was a C emulator I had this command to change char variables. But now I have some problems to fix it in the C+.

Old .c and now .cpp


        pc_setglobalreg(sd, add_str("p1"), x);
        pc_setglobalreg(sd, add_str("p2"), y);
        dir = (sd->bl.x == x && sd->bl.y == y) ? 6 : map_calc_dir(&sd->bl,x,y);
        pc_setglobalreg(sd, add_str("dirJogador"), dir);
        return true;

Compile Error




Edited by SyncMaster
  • Love 1

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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