- NewGeneration = Generation + 1,
- ok = cast_all(Cells, {tick, NewGeneration}),
- {noreply, State#state{replies_pending=NumCells, generation=NewGeneration}};
+ NewGenID = GenID + 1,
+ ok = cast_all(Cells, {next_gen, NewGenID}),
+ {noreply, State#state{replies_pending=NumCells, gen_id=NewGenID}};