conworlds
diff src/vr/vr.c @ 9:c2eecf764daa
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 22 Aug 2014 18:48:25 +0300 |
parents | 90abf4b93cc9 |
children | e3f0ca1d008a |
line diff
1.1 --- a/src/vr/vr.c Fri Aug 22 17:24:43 2014 +0300 1.2 +++ b/src/vr/vr.c Fri Aug 22 18:48:25 2014 +0300 1.3 @@ -71,8 +71,11 @@ 1.4 int vr_use_module(int idx) 1.5 { 1.6 if(idx >= 0 && idx < vr_get_num_active_modules()) { 1.7 - vrm = vr_get_active_module(idx); 1.8 - printf("using vr module: %s\n", vrm->name); 1.9 + struct vr_module *m = vr_get_active_module(idx); 1.10 + if(m != vrm) { 1.11 + vrm = m; 1.12 + printf("using vr module: %s\n", vrm->name); 1.13 + } 1.14 return 0; 1.15 } 1.16 return -1;