@@ -112,14 +112,14 @@ def filter(types)
112112
113113 def on_type_added ( genv , src_var , added_types )
114114 if src_var == @base_vtx
115- if @base_vtx . types . size == 1 && @base_vtx . types . include? ( Type :: Bot . new ( genv ) )
115+ if @base_vtx . types . size == 1 && @base_vtx . types . include? ( genv . bot_type )
116116 @next_vtx . on_type_removed ( genv , self , @types . keys & @next_vtx . types . keys ) # XXX: smoke/control/bot2.rb
117117 end
118118 else
119119 added_types . each do |ty |
120120 @types [ ty ] = true
121121 end
122- if @base_vtx . types . size == 1 && @base_vtx . types . include? ( Type :: Bot . new ( genv ) )
122+ if @base_vtx . types . size == 1 && @base_vtx . types . include? ( genv . bot_type )
123123 # ignore
124124 else
125125 @next_vtx . on_type_added ( genv , self , added_types - @next_vtx . types . keys ) # XXX: smoke/control/bot4.rb
@@ -129,7 +129,7 @@ def on_type_added(genv, src_var, added_types)
129129
130130 def on_type_removed ( genv , src_var , removed_types )
131131 if src_var == @base_vtx
132- if @base_vtx . types . size == 1 && @base_vtx . types . include? ( Type :: Bot . new ( genv ) )
132+ if @base_vtx . types . size == 1 && @base_vtx . types . include? ( genv . bot_type )
133133 # ignore
134134 else
135135 @next_vtx . on_type_added ( genv , self , @types . keys - @next_vtx . types . keys ) # XXX: smoke/control/bot4.rb
@@ -138,7 +138,7 @@ def on_type_removed(genv, src_var, removed_types)
138138 removed_types . each do |ty |
139139 @types . delete ( ty ) || raise
140140 end
141- if @base_vtx . types . size == 1 && @base_vtx . types . include? ( Type :: Bot . new ( genv ) )
141+ if @base_vtx . types . size == 1 && @base_vtx . types . include? ( genv . bot_type )
142142 # ignore
143143 else
144144 @next_vtx . on_type_removed ( genv , self , removed_types & @next_vtx . types . keys ) # XXX: smoke/control/bot2.rb
0 commit comments