Skip to content

Commit

Permalink
renamed flag_black to proper name flag_back
Browse files Browse the repository at this point in the history
  • Loading branch information
pschiel authored and rp- committed Apr 22, 2024
1 parent 871ba60 commit 3fc067d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions dcs/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -1513,21 +1513,21 @@ def dict(self):
class StartWaitUserResponse(Action):
predicate = "c_start_wait_for_user"

def __init__(self, flag=1, flag_black=999):
def __init__(self, flag=1, flag_back=999):
super(StartWaitUserResponse, self).__init__(StartWaitUserResponse.predicate)
self.flag = flag
self.params.append(self.flag)
self.flag_black = flag_black
self.params.append(self.flag_black)
self.flag_back = flag_back
self.params.append(self.flag_back)

@classmethod
def create_from_dict(cls, d, mission):
return cls(d["flag"], d["flag_black"])
return cls(d["flag"], d["flag_back"])

def dict(self):
d = super(StartWaitUserResponse, self).dict()
d["flag"] = self.flag
d["flag_black"] = self.flag_black
d["flag_back"] = self.flag_back
return d


Expand Down
2 changes: 1 addition & 1 deletion tools/actions_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@
"name": "c_start_wait_for_user",
"fields": [
{"id": "flag", "default": 1},
{"id": "flag_black", "default": 999}
{"id": "flag_back", "default": 999}
]
},
"StopWaitUserResponse": {
Expand Down

0 comments on commit 3fc067d

Please sign in to comment.