Hopefully the last of the MSVC fixes.

This commit is contained in:
n-a-c-h
2004-07-17 20:16:01 +00:00
parent f25f7e8658
commit 6007c5b37d

View File

@@ -29,15 +29,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#define SRAM setaramdata
#ifdef __WIN32__
extern "C" {
#endif
extern unsigned char *setaramdata;
void ST010DoCommand(void);
#ifdef __WIN32__
}
#endif
//C++ style code in C
#define bool unsigned char
@@ -367,6 +360,9 @@ void ST010DoCommand(void)
int16 ypos_new = ST010_WORD(0x00DE);
int16 xpos_new = ST010_WORD(0x00E0);
//Backup speed
uint16 old_speed = speed;
//Mask upper bit
xpos_new &= 0x7FFF;
@@ -391,9 +387,6 @@ void ST010DoCommand(void)
wrap=true;
}
uint16 old_speed;
old_speed = speed;
//Special case
if (abs(o1-rot)==0x8000)
{