Skip to content

Cable code cleanup

Rob Nelson requested to merge pull/3036/CableCuts into Bleeding-Edge

Created by: ComicIronic

Changes to pooling: You can now pass the same arguments to getFromPool as you can to New. getFromPool now also calls New (not new) so things initialise properly and arent full of dingus. Every argument after the type in getFromPool is now passed to the New. Cables, both items and structures, now use pooling because rebuilding after an explosion shouldn't cost so much CPU. Cable structures now use a greyscale and color system of icons, instead of having individual icons. This should help with load. I increased contrast on the white icons as well to improve the look. Changed some redundant stuff, like a defined proc name not just being another proc.

Merge request reports