The Dawn Of Time
The Official Forums for the Dawn Of Time Mud Codebase
 
Log in Register FAQ Memberlist Search The Dawn Of Time Forum Index Goto the Official Dawn Website

Bug in save.cpp

 
Post new topic   Reply to topic    The Dawn Of Time Forum Index » 1.69r fixes implemented into the next pending release
View previous topic :: View next topic  
Author Message
Blackout



Joined: 16 Aug 2003
Posts: 26

PostPosted: Thu Nov 26, 2009 4:58 am    Post subject: Bug in save.cpp Reply with quote

The following line in function fwrite_pet:
Code:

fprintf(fp,"Pos  %d\n", pet->position = POS_FIGHTING ? POS_STANDING : pet->position);


Assigns value to pet->position instead of evaluating it. This forces the pet to always be POS_FIGHTING during the save routine, which always evaluates as true (since the assignment of value is successful), which means your pet ends up having POS_STANDING saved as its position no matter what it really was.

It should be:
Code:

fprintf(fp,"Pos  %d\n", pet->position == POS_FIGHTING ? POS_STANDING : pet->position);



_________________
"I could really get around to hating you if I didn't procrastinate so much."

The Third Turning Mud -- Wheel of Time Reimagined
tangent.dune.net 5600
Shaitan, Owner/Head Implementor
Back to top
View user's profile Send private message Send e-mail
Kalahn
Codebase Developer


Joined: 18 Jan 2003
Posts: 710
Location: New Zealand

PostPosted: Sat Sep 04, 2010 10:46 pm    Post subject: Reply with quote

Nicely spotted, thanks for the bug report, will be in the next release.

- Kal


Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    The Dawn Of Time Forum Index » 1.69r fixes implemented into the next pending release All times are GMT + 13 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2005 phpBB Group
Theme created by Vjacheslav Trushkin