Skip to content

Commit

Permalink
Restored _organelle to private, there's a reason it's private
Browse files Browse the repository at this point in the history
to stop people from modifying it
  • Loading branch information
hhyyrylainen committed May 9, 2019
1 parent 47be487 commit 62d5446
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/microbe_stage/microbe_editor/microbe_editor.as
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class MicrobeEditor{
for(uint i = 0; i < templateOrganelles.length(); ++i){
auto organelle = cast<PlacedOrganelle>(templateOrganelles[i]);
editedMicrobe.insertLast(organelle);
playerSpecies.stringCode+=organelle._organelle.gene;
playerSpecies.stringCode += organelle.organelle.gene;
// This will always be added after each organelle so its safe to assume its there
playerSpecies.stringCode+=","+organelle.q+","+
organelle.r+","+
Expand Down
2 changes: 1 addition & 1 deletion scripts/microbe_stage/organelle.as
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ class PlacedOrganelle : SpeciesStoredOrganelleType{
}
}

Organelle@ _organelle;
private Organelle@ _organelle;

// q and r are radial coordinates instead of cartesian
// Could use the class AxialCoordinates here
Expand Down
2 changes: 1 addition & 1 deletion scripts/microbe_stage/species_system.as
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ ObjectID createSpecies(CellStageWorld@ world, const string &in name, const strin
for(uint i = 0; i < organelles.length(); ++i){
auto organelle = cast<PlacedOrganelle>(organelles[i]);
speciesComponent.organelles.insertLast(organelle);
speciesComponent.stringCode+=organelle._organelle.gene;
speciesComponent.stringCode += organelle.organelle.gene;
// This will always be added after each organelle so its safe to assume its there
speciesComponent.stringCode+=","+organelle.q+","+
organelle.r+","+
Expand Down

0 comments on commit 62d5446

Please sign in to comment.