]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a few very small mistakes by Black and Elric: precompiler directives (#define...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 7 Sep 2005 16:05:54 +0000 (16:05 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 7 Sep 2005 16:05:54 +0000 (16:05 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5693 d7cf8633-e32d-0410-b094-e92efae38249

progsvm.h
snd_mem.c

index c977d7ab6b05e097fef515c757ebb4f7f54a8d86..aae25ce99ca5612ab353b5bc2ed0a422f34af7e8 100644 (file)
--- a/progsvm.h
+++ b/progsvm.h
@@ -508,9 +508,9 @@ void PRVM_FreeString(int num);
 
 //#define PRVM_SAFENAME
 #ifndef PRVM_SAFENAME
-       #define PRVM_NAME       (prog->name)
+#      define PRVM_NAME        (prog->name)
 #else
-       #define PRVM_NAME       (prog->name ? prog->name : "Unknown prog name")
+#      define PRVM_NAME        (prog->name ? prog->name : "Unknown prog name")
 #endif
 
 // helper macro to make function pointer calls easier
index 2b061f454330b6a5ab1d830cf1e60ff55f38ec5c..281e513a0b222216a6710454dc1e8b94ff0835f3 100644 (file)
--- a/snd_mem.c
+++ b/snd_mem.c
@@ -56,9 +56,9 @@ size_t ResampleSfx (const qbyte *in_data, size_t in_length, const snd_format_t*
        // General case (linear interpolation with a fixed-point fractional
        // step, 18-bit integer part and 14-bit fractional part)
        // Can handle up to 2^18 (262144) samples per second (> 96KHz stereo)
-       #define FRACTIONAL_BITS 14
-       #define FRACTIONAL_MASK ((1 << FRACTIONAL_BITS) - 1)
-       #define INTEGER_BITS (sizeof(samplefrac)*8 - FRACTIONAL_BITS)
+#      define FRACTIONAL_BITS 14
+#      define FRACTIONAL_MASK ((1 << FRACTIONAL_BITS) - 1)
+#      define INTEGER_BITS (sizeof(samplefrac)*8 - FRACTIONAL_BITS)
        else
        {
                const unsigned int fracstep = (double)in_format->speed / shm->format.speed * (1 << FRACTIONAL_BITS);