ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/loader.C
(Generate patch)

Comparing deliantra/server/common/loader.C (file contents):
Revision 1.109 by root, Sun Apr 20 00:44:12 2008 UTC vs.
Revision 1.111 by root, Sun Apr 20 23:25:09 2008 UTC

18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 * 20 *
21 * The authors can be reached via e-mail to <support@deliantra.net> 21 * The authors can be reached via e-mail to <support@deliantra.net>
22 */ 22 */
23
24/* Eneq(@csd.uu.se): Added weight-modifiers in environment of objects.
25 sub/add_weight will transcend the environment updating the carrying
26 variable. */
27 23
28#include <global.h> 24#include <global.h>
29#include <loader.h> 25#include <loader.h>
30#include <sproto.h> 26#include <sproto.h>
31 27
1408 * the only place this is not set is when saving the player. 1404 * the only place this is not set is when saving the player.
1409 */ 1405 */
1410bool 1406bool
1411object::write (object_freezer &f) 1407object::write (object_freezer &f)
1412{ 1408{
1413 archetype *at = arch ? (archetype *)arch : archetype::empty; 1409 archetype *at = arch ? arch : archetype::empty;
1414 1410
1415 f.put (KW_arch, at->archname); 1411 f.put (KW_arch, at->archname);
1416 write_diff (f, this, at); 1412 write_diff (f, this, at);
1417 1413
1418 for (object *tmp = inv; tmp; tmp = tmp->below) 1414 for (object *tmp = inv; tmp; tmp = tmp->below)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines