aboutsummaryrefslogtreecommitdiff
path: root/models/blender/mbb/retrosignal.blend1
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-09-13 14:44:35 +0200
committerorwell96 <mono96.mml@gmail.com>2016-09-13 14:44:35 +0200
commit1e93892d8ab8492a0f90a4e55806fc06ff6cb437 (patch)
tree33036b450c5347bfdc9db7af5aefb6dae9fedfa4 /models/blender/mbb/retrosignal.blend1
parentd3af97b63e92c84f1857483aa49fb677acaff541 (diff)
downloadadvtrains-1e93892d8ab8492a0f90a4e55806fc06ff6cb437.tar.gz
advtrains-1e93892d8ab8492a0f90a4e55806fc06ff6cb437.tar.bz2
advtrains-1e93892d8ab8492a0f90a4e55806fc06ff6cb437.zip
add mesecon support for switches and signals
Diffstat (limited to 'models/blender/mbb/retrosignal.blend1')
0 files changed, 0 insertions, 0 deletions
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef LIGHT_HEADER #define LIGHT_HEADER #include "irrlichttypes.h" /* Lower level lighting stuff */ // This directly sets the range of light. // Actually this is not the real maximum, and this is not the // brightest. The brightest is LIGHT_SUN. #define LIGHT_MAX 14 // Light is stored as 4 bits, thus 15 is the maximum. // This brightness is reserved for sunlight #define LIGHT_SUN 15 inline u8 diminish_light(u8 light) { if(light == 0) return 0; if(light >= LIGHT_MAX) return LIGHT_MAX - 1; return light - 1; } inline u8 diminish_light(u8 light, u8 distance) { if(distance >= light)