forked from github/server
Keine Befehle löschen, ist nicht nötig und verwirtr nur.
This commit is contained in:
parent
095e3d39ce
commit
5ee5751475
3 changed files with 3 additions and 8 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -46,3 +46,5 @@ tests/data/185.dat
|
|||
/cutest/
|
||||
/critbit/
|
||||
*.mo
|
||||
/CMakeSettings.json
|
||||
/.vs
|
||||
|
|
|
@ -647,7 +647,7 @@ void leave_building(unit * u)
|
|||
{
|
||||
building * b = u->building;
|
||||
|
||||
u->building = 0;
|
||||
u->building = NULL;
|
||||
if (b->_owner == u) {
|
||||
building_update_owner(b);
|
||||
assert(b->_owner != u);
|
||||
|
|
|
@ -1226,13 +1226,6 @@ void do_enter(struct region *r, bool is_final_attempt)
|
|||
}
|
||||
}
|
||||
if (ulast != NULL) {
|
||||
/* Wenn wir hier angekommen sind, war der Befehl
|
||||
* erfolgreich und wir loeschen ihn, damit er im
|
||||
* zweiten Versuch nicht nochmal ausgefuehrt wird. */
|
||||
*ordp = ord->next;
|
||||
ord->next = NULL;
|
||||
free_order(ord);
|
||||
|
||||
if (ulast != u) {
|
||||
/* put u behind ulast so it's the last unit in the building */
|
||||
*uptr = u->next;
|
||||
|
|
Loading…
Reference in a new issue