ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.481 by root, Sun Oct 11 00:24:35 2009 UTC vs.
Revision 1.482 by root, Sun Oct 11 05:31:54 2009 UTC

170 my $reflect = JSON::XS::decode_json $_; 170 my $reflect = JSON::XS::decode_json $_;
171 $REFLECT{$reflect->{class}} = $reflect; 171 $REFLECT{$reflect->{class}} = $reflect;
172} 172}
173 173
174# this is decidedly evil 174# this is decidedly evil
175$REFLECT{object}{flags} = { map $_ => undef, grep $_, map /^FLAG_([A-Z0-9_]+)$/ && lc $1, keys %{"cf::"} }; 175$REFLECT{object}{flags} = { map +($_ => undef), grep $_, map /^FLAG_([A-Z0-9_]+)$/ && lc $1, keys %{"cf::"} };
176 176
177############################################################################# 177#############################################################################
178 178
179=head2 GLOBAL VARIABLES 179=head2 GLOBAL VARIABLES
180 180

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines