mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
nuke all the #if 0's
scripted commit:
find . -not -path '*/.*' -and -not -path '*/ext*' -type d -exec coan source -R -E {} ';'
https://coan2.sourceforge.net/coan_man_1.html
This commit is contained in:
committed by
Asdow
parent
6afe785f4b
commit
8b1c4effa0
@@ -12786,22 +12786,7 @@ static bool locationStringToCoordinates_AltSector(std::string loc, UINT8* x, UIN
|
||||
}
|
||||
|
||||
// gather column
|
||||
#if 0
|
||||
loc = loc.substr(1);
|
||||
stringstream ss = stringstream();
|
||||
if (loc[0] >= '0' && loc[0] <= '9')
|
||||
{
|
||||
ss << loc[0];
|
||||
loc = loc.substr(1);
|
||||
}
|
||||
if (loc[0] >= '0' && loc[0] <= '9')
|
||||
{
|
||||
ss << loc[0];
|
||||
loc = loc.substr(1);
|
||||
}
|
||||
#else
|
||||
stringstream ss(loc.substr(1));
|
||||
#endif
|
||||
int col = 0;
|
||||
ss >> col;
|
||||
if (col >= 1 && col <= 16)
|
||||
@@ -12840,22 +12825,7 @@ static bool locationStringToCoordinates(std::string loc, UINT8* x, UINT8* y, UIN
|
||||
}
|
||||
|
||||
// gather column
|
||||
#if 0
|
||||
loc = loc.substr(1);
|
||||
stringstream ss = stringstream();
|
||||
if (loc[0] >= '0' && loc[0] <= '9')
|
||||
{
|
||||
ss << loc[0];
|
||||
loc = loc.substr(1);
|
||||
}
|
||||
if (loc[0] >= '0' && loc[0] <= '9')
|
||||
{
|
||||
ss << loc[0];
|
||||
loc = loc.substr(1);
|
||||
}
|
||||
#else
|
||||
stringstream ss(loc);
|
||||
#endif
|
||||
int col = 0;
|
||||
ss >> col;
|
||||
if (col >= 1 && col <= 16)
|
||||
|
||||
Reference in New Issue
Block a user