attempt to fix collected amount etc.
This commit is contained in:
parent
daf3444200
commit
8717076d96
2 changed files with 18 additions and 1 deletions
|
|
@ -126,3 +126,20 @@ CCMD(autoaddlightprobes)
|
|||
|
||||
Printf("Spawned %d probes\n", probes);
|
||||
}
|
||||
|
||||
CCMD(setlightlevel)
|
||||
{
|
||||
if (argv.argc() < 2)
|
||||
{
|
||||
Printf("Usage: setlightlevel <lightlevel>\n");
|
||||
return;
|
||||
}
|
||||
|
||||
int light = std::atoi(argv[1]);
|
||||
|
||||
for (int i = 0, size = level.sectors.size(); i < size; ++i)
|
||||
{
|
||||
auto& sector = level.sectors[i];
|
||||
sector.SetLightLevel(light);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue