animations
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@176 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -337,8 +337,10 @@ COMMAND(md3skin, ARG_2STR);
|
||||
void md3animation(char *first, char *nums, char *loopings, char *fps) /* configurable animations */
|
||||
{
|
||||
md3animinfo &a = tmp_animations.add();
|
||||
a.start = atoi(first);
|
||||
a.end = a.start + atoi(nums) - 1;
|
||||
a.start = atoi(first);
|
||||
int n = atoi(nums);
|
||||
if(n<=0) n = 1;
|
||||
a.end = a.start + n - 1;
|
||||
(atoi(loopings) > 0) ? a.loop = true : a.loop = false;
|
||||
a.fps = atoi(fps);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user