History

store avatar position and yaw in file to restore on relaunch

Stephen Birarda committed 13 years ago

Commit 1a8564f1 parent 90a08b43 files · +28 −1Browse files

Showing the changes to interface/src/main.cpp (1 of 3 files). Show all

Unified · Split

interface/src/main.cpp+5−1
@@ -344,7 +344,9 @@ void init(void) · 343 unmodified lines
344344
345345 void terminate () {
346346 // Close serial port
347− //close(serial_fd);
347+ // close(serial_fd);
348+
349+ myAvatar.writeAvatarDataToFile();
348350
349351 #ifndef _WIN32
350352 audio.terminate();
@@ -1944,6 +1946,8 @@ int main(int argc, const char * argv[]) · 1593 unmodified lines
19441946 printLog("Network receive thread created.\n");
19451947 }
19461948
1949+ myAvatar.readAvatarDataFromFile();
1950+
19471951 glutTimerFunc(1000, Timer, 0);
19481952 glutMainLoop();
19491953