MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / reset

Method reset

src/SB/Game/zDiscoFloor.cpp:738–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736} // namespace
737
738void z_disco_floor::reset()
739{
740 flag.culled = false;
741 flag.forward = true;
742 pulse_time = (PI * 2) * xurand();
743 transition_delay = asset->interval.transition;
744 state_delay = asset->interval.state;
745 min_state = 0;
746 max_state = asset->states_size - 1;
747 state_counter = 0;
748
749 set_state(0, true);
750
751 flag.enabled = (asset->flags & 0x2) && (tiles_size != 0);
752}
753
754void z_disco_floor::update(xScene&, F32 dt)
755{

Callers 1

event_handlerMethod · 0.45

Calls 2

xurandFunction · 0.85
set_stateFunction · 0.70

Tested by

no test coverage detected