forked from 0ad/0ad
Ykkrosh
4a7d0e9038
Premake: Don't compile Atlas when compiling ScEd, though I can't remember why. Atlas: Load existing maps. This was SVN commit r2720.
24 lines
349 B
C++
24 lines
349 B
C++
#include "precompiled.h"
|
|
|
|
#include "MessageHandler.h"
|
|
#include "../GameLoop.h"
|
|
|
|
#include <assert.h>
|
|
|
|
namespace AtlasMessage {
|
|
|
|
|
|
MESSAGEHANDLER(ScrollConstant)
|
|
{
|
|
if (msg->dir < 0 || msg->dir > 3)
|
|
{
|
|
debug_warn("ScrollConstant: invalid direction");
|
|
}
|
|
else
|
|
{
|
|
g_GameLoop->input.scrollSpeed[msg->dir] = msg->speed;
|
|
}
|
|
}
|
|
|
|
}
|