ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/gde/GCE/EditAction.pm
(Generate patch)

Comparing deliantra/gde/GCE/EditAction.pm (file contents):
Revision 1.1 by elmex, Mon Feb 20 13:30:28 2006 UTC vs.
Revision 1.2 by elmex, Mon Feb 20 18:21:04 2006 UTC

92 $GCE::MainWindow::MAINWIN->update_stack_view ($map, $x, $y); 92 $GCE::MainWindow::MAINWIN->update_stack_view ($map, $x, $y);
93} 93}
94 94
95package GCE::EditAction::Place; 95package GCE::EditAction::Place;
96 96
97use GCE::Util;
98
97our @ISA = qw/GCE::EditAction/; 99our @ISA = qw/GCE::EditAction/;
98 100
99sub want_cursor { 0 } 101sub want_cursor { 0 }
100 102
101sub begin { 103sub begin {
123 my $pick = $GCE::MainWindow::MAINWIN->get_pick; 125 my $pick = $GCE::MainWindow::MAINWIN->get_pick;
124 my $as = $map->get ($x, $y); 126 my $as = $map->get ($x, $y);
125 127
126 my $arch = { _name => $pick->{_name} }; 128 my $arch = { _name => $pick->{_name} };
127 129
130 $map->set ($x, $y, insert_arch_stack_layer ($as, $arch));
128 push @$as, $arch 131# push @$as, $arch
129 unless @$as && $as->[-1]->{_name} eq $arch->{_name}; 132# unless @$as && $as->[-1]->{_name} eq $arch->{_name};
130 133
131 $map->set ($x, $y, $as); 134 #$map->set ($x, $y, $as);
132 } 135 }
133} 136}
134 137
135package GCE::EditAction::Erase; 138package GCE::EditAction::Erase;
136 139

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines