From 29617109b06de6de48d27ba6cba576205be88d4c Mon Sep 17 00:00:00 2001 From: Jogi Date: Wed, 15 Feb 2012 16:45:57 +0000 Subject: [PATCH] godspeed sir git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3995 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- quakec/csaddon/src/cam.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/quakec/csaddon/src/cam.qc b/quakec/csaddon/src/cam.qc index 9dbdcf751..e66ebb24a 100644 --- a/quakec/csaddon/src/cam.qc +++ b/quakec/csaddon/src/cam.qc @@ -41,8 +41,8 @@ void() spline_init = if (splinefile < 0) { /*too lazy to create a file, just use it as a malloc*/ + splinefile = fopen("", FILE_MMAP_RW, sizeof(camdata_t)); } - splinefile = fopen("", FILE_MMAP_RW, sizeof(camdata_t)); camdata = (camdata_t*)(fgets(splinefile)); }; @@ -408,6 +408,8 @@ void(float attime) spline_overrides = local float stime; local int i; + print("test\n"); + if (camdata->position_count == 0) return; @@ -431,6 +433,8 @@ void(float attime) spline_overrides = if (i == camdata->view_count) return; + print("fuck!\n"); + stime = (attime - cpos->starttime) / (cpos->starttime - cpos->starttime); position = spline_calculate_position(&cpos->spline, stime); @@ -631,7 +635,6 @@ int (vector *curmousepos, vector mousediff, float key) submenu = spline_move(s, point1); menu->flags = 0; } - } int (vector *curmousepos, vector mousediff, float key) testmenu =