ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/map-grid-move-random.ext
(Generate patch)

Comparing deliantra/server/ext/map-grid-move-random.ext (file contents):
Revision 1.1 by root, Fri Dec 15 19:29:18 2006 UTC vs.
Revision 1.2 by root, Sun Sep 30 16:24:29 2007 UTC

16 my $num = $opt{"num_" . $ob->name} || 1; 16 my $num = $opt{"num_" . $ob->name} || 1;
17 17
18 for (1 .. $num) { 18 for (1 .. $num) {
19 my $ob = $ob->clone (0); 19 my $ob = $ob->clone (0);
20 20
21 $who->map->insert_object ($ob, $x1 + rand $opt{width}, $y1 + rand $opt{height}); 21 $who->map->insert ($ob, $x1 + rand $opt{width}, $y1 + rand $opt{height});
22 22
23 push @{ $opt{ob} }, $ob; 23 push @{ $opt{ob} }, $ob;
24 } 24 }
25 } 25 }
26 26

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines