… | … | ||
---|---|---|---|
311 | case KW_arch: | 311 | case KW_arch: |
312 | if (object *op = object::read (f, this)) | 312 | if (object *op = object::read (f, this)) |
313 | { | 313 | { |
314 | // TODO: why? | 314 | // TODO: why? |
315 | if (op->inv) | 315 | if (op->inv) |
316 | { | ||
317 | op->carrying = 0; | ||
316 | op->update_weight (); | 318 | op->update_weight (); |
319 | } | ||
317 | 320 | ||
318 | if (IN_RANGE_EXC (op->x, 0, width) && IN_RANGE_EXC (op->y, 0, height)) | 321 | if (IN_RANGE_EXC (op->x, 0, width) && IN_RANGE_EXC (op->y, 0, height)) |
319 | { | 322 | { |
320 | // we insert manually because | 323 | // we insert manually because |
321 | // a) its way faster | 324 | // a) its way faster |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |