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.162 by root, Fri May 21 00:31:13 2010 UTC vs.
Revision 1.166 by root, Sat Apr 23 04:56:45 2011 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992 Frank Tore Johansen 6 * Copyright (©) 1992 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify it under 8 * Deliantra is free software: you can redistribute it and/or modify it under
9 * the terms of the Affero GNU General Public License as published by the 9 * the terms of the Affero GNU General Public License as published by the
1081 1081
1082 archetype *arch = archetype::find (f.get_str ()); 1082 archetype *arch = archetype::find (f.get_str ());
1083 1083
1084 if (!arch) 1084 if (!arch)
1085 { 1085 {
1086 LOG (llevError, "object refering to nonexistant archetype '%s'.\n", f.get_str ()); 1086 LOG (llevError, "object referring to nonexistent archetype '%s'.\n", f.get_str ());
1087 arch = archetype::find (shstr_earthwall); 1087 arch = archetype::find (shstr_earthwall);
1088 } 1088 }
1089 1089
1090 assert (arch); //D maybe use exception handling of sorts? 1090 assert (arch); //D maybe use exception handling of sorts?
1091 1091
1465#endif 1465#endif
1466 1466
1467 // save body locations. gcc's memcmp does an abysmal job when used 1467 // save body locations. gcc's memcmp does an abysmal job when used
1468 for (int i = 0; i < NUM_BODY_LOCATIONS; i++) 1468 for (int i = 0; i < NUM_BODY_LOCATIONS; i++)
1469 if (expect_false (op->slot[i].info != arch->slot[i].info)) 1469 if (expect_false (op->slot[i].info != arch->slot[i].info))
1470 f.put (body_locations[i].save_name, op->slot[i].info); 1470 f.put (body_locations[i].kw, op->slot[i].info);
1471} 1471}
1472 1472
1473/* 1473/*
1474 * Dumps all variables in an object to a file. 1474 * Dumps all variables in an object to a file.
1475 * If bit 0 of flag is set, unpaid objects will be saved. As of now, 1475 * If bit 0 of flag is set, unpaid objects will be saved. As of now,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines