eckhchri / pcars-ds-liveview

Provides a html page for project cars dedicated server and display a map of the current race.
14 stars 1 forks source link

if DS host a trackid that is not available in RefPoints results in "uncaught script error" #5

Closed eckhchri closed 8 years ago

eckhchri commented 9 years ago

Todo: Implement a check if TrackId is available in hash, before these lines: // set values for the object this.Lat = aRefPoints[this.cuircit_id]["refLat"]; this.Long = aRefPoints[this.cuircit_id]["refLong"]; this.Rot = aRefPoints[this.cuircit_id]["rotation"];

eckhchri commented 8 years ago

after redesgin the buildTracklist(), this situation is eleminated.