]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/View.qc
Use setproperty instead of R_SetView
[voretournament/voretournament.git] / data / qcsrc / client / View.qc
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