Project

General

Profile

Revision b2d280c7

IDb2d280c758c4d55d2bc9a6d2f972d6605ea46cbe
Child 0970d303

Added by Yuyang Guo about 11 years ago

fixed the autoname generating issue

View differences:

scout/scoutsim/GUI.py
261 261
        y = y_wx.GetValue()
262 262
        theta = theta_wx.GetValue()
263 263
        name = name_wx.GetValue()
264
        newSc = Scout(x, y, theta, name, self.scouts, self.behaviors)
264
        newSc = Scout(x, y, theta, name, self.behaviors, self.scouts)
265 265
        if (newSc.valid):
266 266
            # successful
267 267
            self.scouts[newSc.name] = newSc

Also available in: Unified diff