[FIXED] Player Chars get sometimes deleted
-
Grimson
- Developer
- Posts: 802
- Joined: Sat Jun 04, 2005 1:52 am
- Location: Germany
- Has thanked: 0
- Been thanked: 0
Player Chars get sometimes deleted
I recently noticed that after using the 'travel command my player char gets sometimes deleted when I'm logged out and a worldsave occurs. I think that happens since the last changes to region handling.
-
giwo
- Developer
- Posts: 1780
- Joined: Fri Jun 18, 2004 4:17 pm
- Location: California
- Has thanked: 0
- Been thanked: 0
No, you are using release builds so those ifdefs are causing the problem. Think about it, without the information in the ifdefs, the next thing below the if( Remove() ) statement is the if( Add ). So it's nesting the Add inside the remove, thus it only adds you if it CAN'T find you in the previous region. 
I use debug 99% of the time which is why I didn't notice, in debug those statements work fine because of the #ifdef'd code.
I use debug 99% of the time which is why I didn't notice, in debug those statements work fine because of the #ifdef'd code.
Scott
-
Grimson
- Developer
- Posts: 802
- Joined: Sat Jun 04, 2005 1:52 am
- Location: Germany
- Has thanked: 0
- Been thanked: 0
I see.giwo wrote:No, you are using release builds so those ifdefs are causing the problem. Think about it, without the information in the ifdefs, the next thing below the if( Remove() ) statement is the if( Add ). So it's nesting the Add inside the remove, thus it only adds you if it CAN'T find you in the previous region.
Then it's good that I use release most of the timegiwo wrote:I use debug 99% of the time which is why I didn't notice, in debug those statements work fine because of the #ifdef'd code.