]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Use setproperty instead of R_SetView
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 15:05:07 +0000 (17:05 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 15:05:07 +0000 (17:05 +0200)
data/qcsrc/client/View.qc
docs/TODO.txt

index 43c2e882b4b83a063930c353231dd2b15a7bf1cb..3e48e2d36fc871205507a80f4a954362b5860732 100644 (file)
@@ -564,7 +564,7 @@ void CSQC_UpdateView(float w, float h)
 \r
        // Assign Standard Viewflags\r
        // Draw the World (and sky)\r
-       R_SetView(VF_DRAWWORLD, 1);\r
+       setproperty(VF_DRAWWORLD, 1);\r
 \r
        // Set the console size vars\r
        vid_conwidth = cvar("vid_conwidth");\r
@@ -592,7 +592,7 @@ void CSQC_UpdateView(float w, float h)
                        power_boot = time;\r
        }\r
 \r
-       R_SetView(VF_FOV, GetCurrentFov(fov));\r
+       setproperty(VF_FOV, GetCurrentFov(fov));\r
 \r
        // Camera for demo playback\r
        if(camera_active)\r
@@ -623,10 +623,10 @@ void CSQC_UpdateView(float w, float h)
        // Draw the Crosshair\r
        float scoreboard_active;\r
        scoreboard_active = Sbar_WouldDrawScoreboard();\r
-       R_SetView(VF_DRAWCROSSHAIR, 0); //Make sure engine crosshairs are always hidden\r
+       setproperty(VF_DRAWCROSSHAIR, 0); //Make sure engine crosshairs are always hidden\r
 \r
        // Draw the Engine Status Bar (the default Quake HUD)\r
-       R_SetView(VF_DRAWENGINESBAR, 0);\r
+       setproperty(VF_DRAWENGINESBAR, 0);\r
 \r
        // fetch this one only once per frame\r
        sbar_showbinds = cvar("sbar_showbinds");\r
@@ -1467,11 +1467,11 @@ void CSQC_UpdateView(float w, float h)
                string w0, h0;\r
                w0 = cvar_string("vid_conwidth");\r
                h0 = cvar_string("vid_conheight");\r
-               //R_SetView(VF_VIEWPORT, '0 0 0', '640 480 0');\r
-               //R_SetView(VF_FOV, '90 90 0');\r
-               R_SetView(VF_ORIGIN, '0 0 0');\r
-               R_SetView(VF_ANGLES, '0 0 0');\r
-               R_SetView(VF_PERSPECTIVE, 1);\r
+               //setproperty(VF_VIEWPORT, '0 0 0', '640 480 0');\r
+               //setproperty(VF_FOV, '90 90 0');\r
+               setproperty(VF_ORIGIN, '0 0 0');\r
+               setproperty(VF_ANGLES, '0 0 0');\r
+               setproperty(VF_PERSPECTIVE, 1);\r
                makevectors('0 0 0');\r
                vector v1, v2;\r
                cvar_set("vid_conwidth", "800");\r
@@ -1665,6 +1665,6 @@ void CSQC_Demo_Camera()
                current_position = current_origin + current_camera_offset;\r
        }\r
 \r
-       R_SetView(VF_ANGLES, current_angles);\r
-       R_SetView(VF_ORIGIN, current_position);\r
+       setproperty(VF_ANGLES, current_angles);\r
+       setproperty(VF_ORIGIN, current_position);\r
 }\r
index c81fe6e9c691ab037a2603d70ca4432dd8b5c72a..0574e60ff94265847fbcb8fffc23c2c2e98ec695 100644 (file)
 \r
 - 0.7 | 0.8: Is the proper blue color used in team games, with the new colormap?\r
 \r
-- 0.7 | 0.8: Use R_SetProperty instead of R_SetView\r
-\r
 - 0.8 BUG: Swallow model gets bumped outside of the view at times. This is likely due to the change to offset the original weapon viewmodel.\r
 \r
 - 0.7 | 0.8: Do the Desertfactory textures have metal footsteps where they need to?\r