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
344 344
345void terminate () {345void terminate () {
346 // Close serial port346 // Close serial port
347 //close(serial_fd);347 // close(serial_fd);
348
349 myAvatar.writeAvatarDataToFile();
348 350
349 #ifndef _WIN32351 #ifndef _WIN32
350 audio.terminate();352 audio.terminate();
@@ -1944,6 +1946,8 @@ int main(int argc, const char * argv[]) · 1593 unmodified lines
1944 printLog("Network receive thread created.\n"); 1946 printLog("Network receive thread created.\n");
1945 }1947 }
1946 1948
1949 myAvatar.readAvatarDataFromFile();
1950
1947 glutTimerFunc(1000, Timer, 0);1951 glutTimerFunc(1000, Timer, 0);
1948 glutMainLoop();1952 glutMainLoop();
1949 1953