projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b92e393
)
when objects are nuked, creation time is set to 0 to avoid objid interference
author
Ari Johnson
<ari@cobramush.org>
Tue, 20 Feb 2007 19:15:39 +0000
(19:15 +0000)
committer
Ari Johnson
<ari@cobramush.org>
Tue, 20 Feb 2007 19:15:39 +0000
(19:15 +0000)
src/destroy.c
patch
|
blob
|
history
src/fundb.c
patch
|
blob
|
history
diff --git
a/src/destroy.c
b/src/destroy.c
index e5a5e8f20b1d9a403c5317a5dd0a63a1886225ef..aca63aeeec4800c3d7426c278ad1e55022a0756b 100644
(file)
--- a/
src/destroy.c
+++ b/
src/destroy.c
@@
-762,6
+762,7
@@
free_object(dbref thing)
set_name(thing, "Garbage");
Exits(thing) = NOTHING;
Home(thing) = NOTHING;
+ CreTime(thing) = 0; /* Prevents it from matching objids */
set_lmod(thing, NULL);
clear_objdata(thing);
diff --git
a/src/fundb.c
b/src/fundb.c
index 09f290c966fd7431ecf31103499dbcd9bdca4fe0..56b86383e026fec1027dcf8effa76dd07a1a6456 100644
(file)
--- a/
src/fundb.c
+++ b/
src/fundb.c
@@
-1195,7
+1195,7
@@
FUNCTION(fun_ctime)
{
dbref it = match_thing(executor, args[0]);
- if (GoodObject(it))
+ if (GoodObject(it)
&& !IsGarbage(it)
)
safe_str(show_time(CreTime(it), 0), buff, bp);
else
safe_str(T(e_notvis), buff, bp);