SuperTuxKart 1.5 upstream source (from official release tarball)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/* Script used to disable point light for lamps when the track is set during day
|
||||
Jean-Manuel Clemencon (c) 2018 for SuperTuxKart
|
||||
*/
|
||||
namespace hd_chineseRedLantern_a
|
||||
{
|
||||
void onStart(const string instID)
|
||||
{
|
||||
if (Track::isDuringDay())
|
||||
{
|
||||
Track::TrackObject@ lamp = Track::getTrackObject(instID, "Lamp");
|
||||
lamp.setEnabled(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user