Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Using Evloved's lighting functions

Author
Message
Broken_Code
15
Years of Service
User Offline
Joined: 20th Aug 2010
Location: Bremen, Germany
Posted: 24th Jan 2013 00:13 Edited at: 24th Jan 2013 00:22
I've just started using Evolved's lighting functions for my game, and I've been looking to make the DBP code a bit cleaner/faster/easier to read.

The code contains this function:


This seems a bit OTT to me, why not just do this?


There must be a reason for it or he wouldn't have gone to all the effort to type it, but it looks to me as if each step checking the size of the object will return the same value. Can anyone see a problem with my thinking/explain why Evolved has done it the way he has?

Thanks,
BC

Login to post a reply

Server time is: 2026-07-07 08:18:09
Your offset time is: 2026-07-07 08:18:09