Some1
New Member
- Joined
- Jan 12, 2013
- Messages
- 40
- Reaction score
- 4
Tried this by using Dev-C++ 4.9.9.2
The server is 0.2.14 Mystic Spirit (9.60)
When opening TheForgottenServer.dev it gives me an error saying that a file is not found but it doesn't say what file is missing. After trying to compile it, at the end when it says linking bla bla.. it fails and opens combat.cpp file and doesn't create the .exe.
Tried with TheForgottenServer-console.dev and at the end same file opens but it creates the .exe file.
This is what shows up from the combat.cpp
Now, by using the console version, logging off doesn't save the character and neither it saves when using !save command
I tried the database with an already compiled .exe and it works fine so it has to be in the source.
The server is 0.2.14 Mystic Spirit (9.60)
When opening TheForgottenServer.dev it gives me an error saying that a file is not found but it doesn't say what file is missing. After trying to compile it, at the end when it says linking bla bla.. it fails and opens combat.cpp file and doesn't create the .exe.
Tried with TheForgottenServer-console.dev and at the end same file opens but it creates the .exe file.
This is what shows up from the combat.cpp
Code:
double angleRad = 3.1416 * angle / 180.0;
double a = std::cos(angleRad);
double b = -std::sin(angleRad);
double c = std::sin(angleRad);
double d = std::cos(angleRad);
for(int32_t x = 0; x < (long)input->getCols(); ++x)
{
for(int32_t y = 0; y < (long)input->getRows(); ++y)
{
//calculate new coordinates using rotation center
int32_t newX = x - centerX;
int32_t newY = y - centerY;
//perform rotation
int32_t rotatedX = round(newX * a + newY * b);
int32_t rotatedY = round(newX * c + newY * d);
//write in the output matrix using rotated coordinates
(*output)[rotatedY + rotateCenterY][rotatedX + rotateCenterX] = (*input)[y][x];
}
}
output->setCenter(rotateCenterY, rotateCenterX);
}
}
MatrixArea* AreaCombat::createArea(const std::list<uint32_t>& list, uint32_t rows)
{
Now, by using the console version, logging off doesn't save the character and neither it saves when using !save command
I tried the database with an already compiled .exe and it works fine so it has to be in the source.