Merge pull request #34 from GabrielRavier/improveF

Improve files starting with F
This commit is contained in:
Clownacy 2019-05-14 09:52:42 +00:00 committed by GitHub
commit 42d5bfae5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View file

@ -7,7 +7,7 @@
unsigned char gFlagNPC[1000];
unsigned char gSkipFlag[8];
//Flag inits
// Flag initializers
void InitFlags()
{
memset(gFlagNPC, 0, sizeof(gFlagNPC));
@ -18,7 +18,7 @@ void InitSkipFlags()
memset(gSkipFlag, 0, sizeof(gSkipFlag));
}
//NPC flags
// NPC flags
void SetNPCFlag(long a)
{
gFlagNPC[a / 8] |= 1 << a % 8;
@ -37,7 +37,7 @@ BOOL GetNPCFlag(long a)
return FALSE;
}
//Skip flags
// Skip flags
void SetSkipFlag(long a)
{
gSkipFlag[a / 8] |= 1 << a % 8;

View file

@ -85,7 +85,7 @@ void MoveFrame3()
gFrame.y = ((map_l - 1) * 0x10 - WINDOW_HEIGHT) * 0x200;
#endif
//Quake
// Quake
if (gFrame.quake2)
{
gFrame.x += (Random(-5, 5) * 0x200);
@ -114,18 +114,18 @@ void GetFramePosition(int *fx, int *fy)
void SetFramePosition(int fx, int fy)
{
//End quake
// End quake
gFrame.quake = 0;
gFrame.quake2 = 0;
//Move frame position
// Move frame position
short map_w, map_l;
GetMapData(0, &map_w, &map_l);
gFrame.x = fx;
gFrame.y = fy;
//Keep in bounds
// Keep in bounds
if (gFrame.x / 0x200 < 0)
gFrame.x = 0;
if (gFrame.y / 0x200 < 0)
@ -139,7 +139,7 @@ void SetFramePosition(int fx, int fy)
void SetFrameMyChar()
{
//Move frame position
// Move frame position
int mc_x, mc_y;
GetMyCharPosition(&mc_x, &mc_y);
@ -149,7 +149,7 @@ void SetFrameMyChar()
gFrame.x = mc_x - (WINDOW_WIDTH << 8);
gFrame.y = mc_y - (WINDOW_HEIGHT << 8);
//Keep in bounds
// Keep in bounds
if (gFrame.x / 0x200 < 0)
gFrame.x = 0;
if (gFrame.y / 0x200 < 0)