Sets whether the given block has been changed from default */
| 429 | |
| 430 | /* Sets whether the given block has been changed from default */ |
| 431 | static void Block_SetCustomDefined(BlockID block, cc_bool defined) { |
| 432 | if (defined) { |
| 433 | definedCustomBlocks[block >> 5] |= (1u << (block & 0x1F)); |
| 434 | } else { |
| 435 | definedCustomBlocks[block >> 5] &= ~(1u << (block & 0x1F)); |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | void Block_DefineCustom(BlockID block, cc_bool checkSprite) { |
| 440 | PackedCol black = PackedCol_Make(0, 0, 0, 255); |
no outgoing calls
no test coverage detected