SetUserPositionRequest

Post here your questions about the C++ API for SFS2X

Moderators: Lapo, Bax, MBagnati

Siegfre
Posts: 1
Joined: 29 May 2016, 20:42

SetUserPositionRequest

Postby Siegfre » 29 May 2016, 20:59

I believe there is a small issue in "SetUserPositionRequest.cpp"

Line 64:

Code: Select all

if (dynamic_cast<MMORoom*>(room.get()) != NULL)
      errors->push_back("Selected Room is not an MMORoom");


should be

Line 64:

Code: Select all

if (dynamic_cast<MMORoom*>(room.get()) == NULL)
      errors->push_back("Selected Room is not an MMORoom");


Otherwise it returns an error when the room is successfully cast to an MMORoom.

(I wasn't sure where to put this, so I hope it's ok for it to be here)
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SetUserPositionRequest

Postby Lapo » 30 May 2016, 09:34

Thanks for reporting.
Lapo
--
gotoAndPlay()
...addicted to flash games
MBagnati
Posts: 126
Joined: 12 Feb 2013, 10:57

Re: SetUserPositionRequest

Postby MBagnati » 01 Jun 2016, 07:15

Hi,
You are right.
I have fixed the issue that will be enclosed into the next API release.

Thanks

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 22 guests