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

Comparing deliantra/server/server/build_map.C (file contents):
Revision 1.24 by root, Mon Feb 5 02:07:40 2007 UTC vs.
Revision 1.25 by root, Mon Apr 30 04:25:30 2007 UTC

764 /* Nothing, meaning player is standing next to an undefined square... */ 764 /* Nothing, meaning player is standing next to an undefined square... */
765 LOG (llevError, "apply_map_builder: undefined square at (%d, %d, %s)\n", x, y, &pl->map->path); 765 LOG (llevError, "apply_map_builder: undefined square at (%d, %d, %s)\n", x, y, &pl->map->path);
766 new_draw_info (NDI_UNIQUE, 0, pl, "You'd better not build here, it looks weird."); 766 new_draw_info (NDI_UNIQUE, 0, pl, "You'd better not build here, it looks weird.");
767 return; 767 return;
768 } 768 }
769
769 tmp2 = find_marked_object (pl); 770 tmp2 = find_marked_object (pl);
770 while (tmp) 771 while (tmp)
771 { 772 {
772 if (!QUERY_FLAG (tmp, FLAG_IS_BUILDABLE) && ((tmp->type != SIGN) || (strcmp (tmp->arch->name, "rune_mark")))) 773 if (!QUERY_FLAG (tmp, FLAG_IS_BUILDABLE) && ((tmp->type != SIGN) || (strcmp (tmp->arch->name, "rune_mark"))))
773 { 774 {
782 } 783 }
783 tmp = tmp->above; 784 tmp = tmp->above;
784 } 785 }
785 786
786 /* Now we know the square is ok */ 787 /* Now we know the square is ok */
787 builder = pl->contr->ranges[range_builder]; 788 builder = pl->contr->ranged_ob;
788 789
789 if (builder->subtype == ST_BD_REMOVE) 790 if (builder->subtype == ST_BD_REMOVE)
790 /* Remover -> call specific function and bail out */ 791 /* Remover -> call specific function and bail out */
791 { 792 {
792 apply_builder_remove (pl, dir); 793 apply_builder_remove (pl, dir);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines