Post edit history
optional options
| Before | After | ||
|---|---|---|---|
| 1 | Featuredefs are not unitdefs. In order to implement this feature you would need to modify unitdefs_post to remove the `corpse` field for each unit. | 1 | Featuredefs are not unitdefs. In order to implement this feature you would need to modify unitdefs_post to remove the `corpse` field for each unit: |
| 2 | \n | ||
| 3 | \n | ||
| 4 | if (Spring.GetModOptions().nowrecks or 0) == 1 then | ||
| 5 | for _, def in pairs(UnitDefs) do | ||
| 6 | def.corpse = nil | ||
| 7 | end | ||
| 8 | end |
