godspeed sir
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3995 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
47ccd3bd0d
commit
29617109b0
1 changed files with 5 additions and 2 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue