LightFreeze
02-28-2013, 02:14 PM
anyone know what this operator is doing, if it is an operator, |=
found in the city block script like this
self._grid_changes |= city_block.MOD_DEPTH
but also like this
self._grid_changes |= (city_block.MOD_RAND_WIDTH | city_block.MOD_WIDTH_MAX | city_block.MOD_DEPTH_MAX)
think I just realised its a bitwise OR, posting anyway for confirmation
found in the city block script like this
self._grid_changes |= city_block.MOD_DEPTH
but also like this
self._grid_changes |= (city_block.MOD_RAND_WIDTH | city_block.MOD_WIDTH_MAX | city_block.MOD_DEPTH_MAX)
think I just realised its a bitwise OR, posting anyway for confirmation