ref: 42d5bfae5f19aab48e6078e151fc00889843dce7
parent: b2812053b7b255928f2547529c762c9135d2b174
parent: ccb37e12b1f54c6dc24d29f8b4f696b28883f2cd
author: Clownacy <[email protected]>
date: Tue May 14 05:52:42 EDT 2019
Merge pull request #34 from GabrielRavier/improveF Improve files starting with F
--- a/src/Flags.cpp
+++ b/src/Flags.cpp
@@ -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 @@
memset(gSkipFlag, 0, sizeof(gSkipFlag));
}
-//NPC flags
+// NPC flags
void SetNPCFlag(long a)
{
gFlagNPC[a / 8] |= 1 << a % 8;
@@ -37,7 +37,7 @@
return FALSE;
}
-//Skip flags
+// Skip flags
void SetSkipFlag(long a)
{
gSkipFlag[a / 8] |= 1 << a % 8;
--- a/src/Frame.cpp
+++ b/src/Frame.cpp
@@ -85,7 +85,7 @@
gFrame.y = ((map_l - 1) * 0x10 - WINDOW_HEIGHT) * 0x200;
#endif
- //Quake
+ // Quake
if (gFrame.quake2)
{
gFrame.x += (Random(-5, 5) * 0x200);
@@ -114,11 +114,11 @@
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);
@@ -125,7 +125,7 @@
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 SetFrameMyChar()
{
- //Move frame position
+ // Move frame position
int mc_x, mc_y;
GetMyCharPosition(&mc_x, &mc_y);
@@ -149,7 +149,7 @@
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)