Skip to content
Snippets Groups Projects
Commit e2049647 authored by dg's avatar dg
Browse files

oups!

git-svn-id: http://svn.net-core.org/repos/t-engine4@5740 51575b47-30f0-44d4-a5cc-537603b46e54
parent f41efec5
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@
setDefaultProjector(function(src, x, y, type, dam, tmp, no_martyr)
if not game.level.map:isBound(x, y) then return 0 end
local terrain = game.level.map(x, y, Map.TERRAIN)
if terrain then terrain:check("da", src, x, y, type, dam) end
if terrain then terrain:check("damage_project", src, x, y, type, dam) end
local target = game.level.map(x, y, Map.ACTOR)
if target then
......
......@@ -736,7 +736,7 @@ void do_resize(int w, int h, bool fullscreen)
{
if (!window)
{
window = SDL_CreateWindow("TE4", 0, 0, w, h, SDL_WINDOW_SHOWN | SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | (fullscreen ? SDL_WINDOW_FULLSCREEN : 0));
window = SDL_CreateWindow("TE4", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, w, h, SDL_WINDOW_SHOWN | SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | (fullscreen ? SDL_WINDOW_FULLSCREEN : 0));
if (window==NULL) {
printf("error opening screen: %s\n", SDL_GetError());
exit(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment