All pastes #733634 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-10-11 23:34 UTC
rendered paste body
 if( $type =~ /POS/  ) {

                if(  $who !~ /$ProneClient::NAME/ ) {
                        $what =~ /(.*),(.*)/;
                        my $x = $1;
                        my $y = $2;
                        my $name = $1 ; #ugly
                        #update remote char position, not very good here.
                        foreach my $p ( @players ) {
                                if( $p->name =~ /$who/ ) {
                                print "SETTING pos for $who *".$p->name."* $x | $y \n";
                                        $p->x($x);
                                        $p->y($y);
                                print "VALUE " . $p->x ."\n";
                                print "VALUE " . $p->y ."\n";

                                        $p->img =~ /(.*)-/;
                                #       $p->img( $1 ."-". $p->direction ) ;
                                #       $p->animate();
                                }

                        }
                }