Throw out the animation debug stuff from production times

This commit is contained in:
Marco Cawthorne 2021-08-09 11:12:39 +02:00
parent 45cb6c9992
commit 5ec3c95bae
3 changed files with 10 additions and 13 deletions

View file

@ -6,7 +6,9 @@ default: all
all: vvm
clean:
-$(RM) vvm
-$(RM) vvm vvm.o
vvm:
$(CXX) $(CXXFLAGS) -o vvm vvm.cpp
vvm: vvm.o
$(CXX) $(CXXFLAGS) -o vvm vvm.o
vvm.o:
$(CXX) -o vvm.o -c vvm.cpp

View file

@ -7,7 +7,9 @@ default: all
all: vvm.exe
clean:
-$(RM) vvm.exe
-$(RM) vvm.exe vvm.exe.o
vvm.exe:
$(CXX) $(CXXFLAGS) -o vvm.exe vvm.cpp -static -static-libgcc -static-libstdc++
vvm.exe: vvm.exe.o
$(CXX) $(CXXFLAGS) -o vvm.exe vvm.exe.o -static -static-libgcc -static-libstdc++
vvm.exe.o:
$(CXX) -o vvm.exe.o -c vvm.cpp

View file

@ -7,8 +7,6 @@ bool noext = false;
bool verbose = false;
bool quiet = false;
FILE *fAnimLog;
struct ejoint
{
const char *name;
@ -1444,7 +1442,6 @@ void printlastanim(void)
printf(" frame %i:\tname=\"%s\"\tfps=%g, %s\n", anims.length()-1,
&stringdata[a.name], a.fps, (a.flags & VVM_LOOP)?"looped":"clamped");
else {
fprintf( fAnimLog, "%s,\n", &stringdata[a.name] );
printf(" anim %i:\tname=\"%s\",\tframes=%i, fps=%g, %s\n", anims.length()-1,
&stringdata[a.name], a.numframes, a.fps, (a.flags & VVM_LOOP)?"looped":"clamped");
}
@ -4877,9 +4874,6 @@ int main(int argc, char **argv)
vector<hitbox> hitboxes;
filespec inspec;
const char *outfile = NULL;
char strAnimLog[80];
sprintf( strAnimLog, "%s_anims.log", argv[1] );
fAnimLog = fopen( strAnimLog, "w");
for(int i = 1; i < argc; i++)
{
@ -5009,7 +5003,6 @@ int main(int argc, char **argv)
}
else fatal("failed writing: %s", outfile);
fclose( fAnimLog );
return EXIT_SUCCESS;
}