On Thu, Feb 16, 2012 at 4:04 AM, GitHub <nore...@github.com> wrote: > Commit: b18b76ea8a553b06c4f7258fc8432c7db280b9aa > > https://github.com/Warzone2100/warzone2100/commit/b18b76ea8a553b06c4f7258fc8432c7db280b9aa > Author: vexed <ve...@wz2100.net> > Date: 2012-02-15 (Wed, 15 Feb 2012) > > Changed paths: > M src/qtscript.cpp > > Log Message: > ----------- > Don't hide possible misnamed or non-existent function calls in qtscript's > backend. We now give a LOG_WARNING to notify us of the possible error. NOTE: > might be better to promote this to LOG_ERROR, so we can tell in-game that we > have issues instead of parsing log files.
A script should not get a warning for every event it does not implement. If you want to warn about misnamed timers, this function needs an additional bool parameter that is not set for events. If you want to warn about misnamed events, then we could check for functions named event*() but not in the set of defined events on load (could be a job for lint, but not sure if that is the right tool for the job anymore). - Per _______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev