]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Move abortframe to top of host_t to avoid struct alignment warning with MSVC
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Jun 2020 03:21:08 +0000 (03:21 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Jun 2020 03:21:08 +0000 (03:21 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12753 d7cf8633-e32d-0410-b094-e92efae38249

quakedef.h

index ff021f17091b85fefa58e9eb167d4fe2d664e622..107ccc7a214d7a08d17c9c184186794e5454a00d 100644 (file)
@@ -529,11 +529,11 @@ typedef enum host_state_e
 
 typedef struct host_s
 {
+       jmp_buf abortframe;
        int state;
        int framecount; // incremented every frame, never reset (checked by Host_Error and Host_SaveConfig_f)
        double realtime; // the accumulated mainloop time since application started (with filtering), without any slowmo or clamping
        double dirtytime; // the main loop wall time for this frame, equal to Sys_DirtyTime() at the start of this host frame
-       jmp_buf abortframe;
 } host_t;
 
 extern host_t host;