Throw out the animation debug stuff from production times
This commit is contained in:
parent
45cb6c9992
commit
5ec3c95bae
8
Makefile
8
Makefile
|
@ -6,7 +6,9 @@ default: all
|
||||||
all: vvm
|
all: vvm
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-$(RM) vvm
|
-$(RM) vvm vvm.o
|
||||||
|
|
||||||
vvm:
|
vvm: vvm.o
|
||||||
$(CXX) $(CXXFLAGS) -o vvm vvm.cpp
|
$(CXX) $(CXXFLAGS) -o vvm vvm.o
|
||||||
|
vvm.o:
|
||||||
|
$(CXX) -o vvm.o -c vvm.cpp
|
||||||
|
|
|
@ -7,7 +7,9 @@ default: all
|
||||||
all: vvm.exe
|
all: vvm.exe
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-$(RM) vvm.exe
|
-$(RM) vvm.exe vvm.exe.o
|
||||||
|
|
||||||
vvm.exe:
|
vvm.exe: vvm.exe.o
|
||||||
$(CXX) $(CXXFLAGS) -o vvm.exe vvm.cpp -static -static-libgcc -static-libstdc++
|
$(CXX) $(CXXFLAGS) -o vvm.exe vvm.exe.o -static -static-libgcc -static-libstdc++
|
||||||
|
vvm.exe.o:
|
||||||
|
$(CXX) -o vvm.exe.o -c vvm.cpp
|
||||||
|
|
7
vvm.cpp
7
vvm.cpp
|
@ -7,8 +7,6 @@ bool noext = false;
|
||||||
bool verbose = false;
|
bool verbose = false;
|
||||||
bool quiet = false;
|
bool quiet = false;
|
||||||
|
|
||||||
FILE *fAnimLog;
|
|
||||||
|
|
||||||
struct ejoint
|
struct ejoint
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
|
@ -1444,7 +1442,6 @@ void printlastanim(void)
|
||||||
printf(" frame %i:\tname=\"%s\"\tfps=%g, %s\n", anims.length()-1,
|
printf(" frame %i:\tname=\"%s\"\tfps=%g, %s\n", anims.length()-1,
|
||||||
&stringdata[a.name], a.fps, (a.flags & VVM_LOOP)?"looped":"clamped");
|
&stringdata[a.name], a.fps, (a.flags & VVM_LOOP)?"looped":"clamped");
|
||||||
else {
|
else {
|
||||||
fprintf( fAnimLog, "%s,\n", &stringdata[a.name] );
|
|
||||||
printf(" anim %i:\tname=\"%s\",\tframes=%i, fps=%g, %s\n", anims.length()-1,
|
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");
|
&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;
|
vector<hitbox> hitboxes;
|
||||||
filespec inspec;
|
filespec inspec;
|
||||||
const char *outfile = NULL;
|
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++)
|
for(int i = 1; i < argc; i++)
|
||||||
{
|
{
|
||||||
|
@ -5009,7 +5003,6 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
else fatal("failed writing: %s", outfile);
|
else fatal("failed writing: %s", outfile);
|
||||||
|
|
||||||
fclose( fAnimLog );
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue