Skip to content

Prevent get_me from causing desyncs #9

@oli-obk

Description

@oli-obk

The get_me function is a footgun. If used in update it will cause desyncs in multiplayer. It's mainly meant to be used in render in order to render only the local player's view or in case all views are the same, possibly highlight the local player's character specially or sth.

  • just make the function fail unconditionally if invoked from anyhwere but render
  • remove the function entirely and pass the "me" Peer as an argument to render

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions