File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ use godot::classes::object::ConnectFlags;
11
11
use godot:: global:: Error ;
12
12
use godot:: prelude:: * ;
13
13
14
- const SCORE_TO_WIN : i32 = 10 ;
15
14
const DEFAULT_PORT : i32 = 8910 ;
16
15
17
16
#[ derive( GodotClass ) ]
@@ -110,9 +109,8 @@ impl IPanel for Lobby {
110
109
. signals ( )
111
110
. connected_to_server ( )
112
111
. builder ( )
113
- . connect_other_mut ( & self . to_gd ( ) , |this : & mut Self | {
112
+ . connect_other_mut ( & self . to_gd ( ) , |_this : & mut Self | {
114
113
// This function is not needed for this project.
115
- ( )
116
114
} ) ;
117
115
multiplayer
118
116
. signals ( )
Original file line number Diff line number Diff line change @@ -61,10 +61,8 @@ impl IArea2D for Paddle {
61
61
// as possible, even if one of the calls is dropped.
62
62
let args = vslice ! [ self . base( ) . get_position( ) , self . _motion] ;
63
63
self . base_mut ( ) . rpc ( "set_pos_and_motion" , args) ;
64
- } else {
65
- if !self . _you_hidden {
66
- self . you_label . as_mut ( ) . unwrap ( ) . hide ( ) ;
67
- }
64
+ } else if !self . _you_hidden {
65
+ self . you_label . as_mut ( ) . unwrap ( ) . hide ( ) ;
68
66
}
69
67
70
68
let translation = Vector2 :: new ( 0.0 , self . _motion * delta as f32 ) ;
You can’t perform that action at this time.
0 commit comments